File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -628,10 +628,16 @@ class TJsonTenantInfo : public TViewerPipeClient<TJsonTenantInfo> {
628
628
tenant.SetStorageAllocatedLimit (storageAllocatedLimit);
629
629
tenant.SetStorageMinAvailableSize (storageMinAvailableSize);
630
630
tenant.SetStorageGroups (storageGroups);
631
+
631
632
auto & ssdUsage = *tenant.AddStorageUsage ();
632
633
ssdUsage.SetType (NKikimrViewer::TStorageUsage::SSD);
633
- ssdUsage.SetSize (storageAllocatedSize);
634
- ssdUsage.SetLimit (storageAllocatedLimit);
634
+ if (tenant.databasequotas ().data_size_hard_quota () && tenant.GetMetrics ().GetStorage ()) {
635
+ ssdUsage.SetSize (tenant.GetMetrics ().GetStorage ());
636
+ ssdUsage.SetLimit (tenant.databasequotas ().data_size_hard_quota ());
637
+ } else {
638
+ ssdUsage.SetSize (storageAllocatedSize);
639
+ ssdUsage.SetLimit (storageAllocatedLimit);
640
+ }
635
641
// TODO(andrew-rykov)
636
642
auto & hddUsage = *tenant.AddStorageUsage ();
637
643
hddUsage.SetType (NKikimrViewer::TStorageUsage::HDD);
You can’t perform that action at this time.
0 commit comments