Fixed node list percentage calculation for storage
This commit is contained in:
parent
ef982a52ed
commit
870b2516a1
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@
|
||||||
@if (NodeStats.ContainsKey(context!.Id) && NodeStats[context.Id] != null)
|
@if (NodeStats.ContainsKey(context!.Id) && NodeStats[context.Id] != null)
|
||||||
{
|
{
|
||||||
var disk = NodeStats[context!.Id]!.Hardware.Disk;
|
var disk = NodeStats[context!.Id]!.Hardware.Disk;
|
||||||
var percent = Math.Round((float)disk.Free / disk.Total * 100, 2);
|
var percent = Math.Round((float)disk.Free / disk.Total * 100F, 2);
|
||||||
|
|
||||||
<ColoredBar Value="percent"/>
|
<ColoredBar Value="percent"/>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue