mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix for #3206 - Azure Virtual Nodes
Signed-off-by: Jon Stelly <967068+jonstelly@users.noreply.github.com>
This commit is contained in:
parent
f1abfb88bf
commit
3027495fa8
@ -35,7 +35,7 @@ interface Props {
|
|||||||
|
|
||||||
export class NodeDetailsResources extends React.Component<Props> {
|
export class NodeDetailsResources extends React.Component<Props> {
|
||||||
toMi(resource: string) {
|
toMi(resource: string) {
|
||||||
if (resource.endsWith("Ki")) {
|
if (resource?.endsWith("Ki")) {
|
||||||
return `${(parseInt(resource) / 1024).toFixed(1)}Mi`;
|
return `${(parseInt(resource) / 1024).toFixed(1)}Mi`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user