mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add B to bytesToUnits to make clear that they are bytes (#5170)
This commit is contained in:
1 parent
1a29759bff
commit
7c34ba36a6
7 files changed
+157
-24
No files matched your search
@@ -127,7 +127,7 @@ export class NodesRoute extends React.Component {
|
||||
metricNames: ["workloadMemoryUsage", "memoryAllocatableCapacity"],
|
||||
formatters: [
|
||||
([usage, capacity]) => `${(usage * 100 / capacity).toFixed(2)}%`,
|
||||
([usage]) => bytesToUnits(usage, 3),
|
||||
([usage]) => bytesToUnits(usage, { precision: 3 }),
|
||||
],
|
||||
});
|
||||
}
|
||||
@@ -139,7 +139,7 @@ export class NodesRoute extends React.Component {
|
||||
metricNames: ["fsUsage", "fsSize"],
|
||||
formatters: [
|
||||
([usage, capacity]) => `${(usage * 100 / capacity).toFixed(2)}%`,
|
||||
([usage]) => bytesToUnits(usage, 3),
|
||||
([usage]) => bytesToUnits(usage, { precision: 3 }),
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user