protected override Gauge32 GetData(DocumentDatabase database) { var indexStorageSizeOnDisk = database.GetIndexStorageSizeOnDisk(); var transactionalStorageSizeOnDisk = database.GetTransactionalStorageSizeOnDisk(); return(new Gauge32((indexStorageSizeOnDisk + transactionalStorageSizeOnDisk.AllocatedSizeInBytes) / 1024L / 1024L)); }
protected override Gauge32 GetData(DocumentDatabase database) { var transactionalStorageSizeOnDisk = database.GetTransactionalStorageSizeOnDisk(); return(new Gauge32(transactionalStorageSizeOnDisk.UsedSizeInBytes / 1024L / 1024L)); }