Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/components/PDiskInfo/PDiskInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function getPDiskInfo<T extends PreparedPDisk>({
SerialNumber,
TotalSize,
AllocatedSize,
AllocatedPercent,
StatusV2,
NumActiveSlots,
ExpectedSlotCount,
Expand Down Expand Up @@ -109,6 +110,12 @@ function getPDiskInfo<T extends PreparedPDisk>({
/>
),
});
if (!isNaN(Number(AllocatedPercent))) {
spaceInfo.push({
label: pDiskInfoKeyset('usage'),
value: `${AllocatedPercent}%`,
});
}
if (valueIsDefined(NumActiveSlots) && valueIsDefined(ExpectedSlotCount)) {
spaceInfo.push({
label: pDiskInfoKeyset('slots'),
Expand Down
1 change: 1 addition & 0 deletions src/components/PDiskInfo/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"realtime": "Realtime",

"space": "Space",
"usage": "Usage",
"slots": "Slots",
"log-size": "Log Size",
"system-size": "System Size",
Expand Down
8 changes: 8 additions & 0 deletions src/components/VDiskInfo/VDiskInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function VDiskInfo<T extends PreparedVDisk>({
const {
AllocatedSize,
SizeLimit,
AllocatedPercent,
DiskSpace,
FrontQueues,
Guid,
Expand Down Expand Up @@ -97,6 +98,13 @@ export function VDiskInfo<T extends PreparedVDisk>({
),
});
}
if (!isNaN(Number(AllocatedPercent))) {
leftColumn.push({
label: vDiskInfoKeyset('usage'),
value: `${AllocatedPercent}%`,
});
}

if (!isNil(DiskSpace)) {
leftColumn.push({
label: vDiskInfoKeyset('space-status'),
Expand Down
1 change: 1 addition & 0 deletions src/components/VDiskInfo/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"has-unreadable-blobs": "Has Unreadable Blobs",

"size": "Size",
"usage": "Usage",

"read-throughput": "Read Throughput",
"write-throughput": "Write Throughput",
Expand Down
Loading