diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent index 4ec522db43..956fb984d8 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -3132,7 +3132,7 @@ sub module_freepercentdisk ($) { return () unless defined ($Parts{$module->{'params'}}) and defined ($Parts{$module->{'params'}}{'avail'}); - my $availp = sprintf("%d", $Parts{$module->{'params'}}{'avail'} * 100 / $Parts{$module->{'params'}}{'total'}); + my $availp = sprintf("%.2f", $Parts{$module->{'params'}}{'avail'} * 100 / $Parts{$module->{'params'}}{'total'}); return ($availp); } diff --git a/pandora_agents/win32/bin/util/df_percent_used.vbs b/pandora_agents/win32/bin/util/df_percent_used.vbs index 090abf8ce7..8499e8694f 100644 --- a/pandora_agents/win32/bin/util/df_percent_used.vbs +++ b/pandora_agents/win32/bin/util/df_percent_used.vbs @@ -25,7 +25,7 @@ For Each objItem in colItems If argc = 0 Or argv.Exists(objItem.Name) Then ' Include only harddrivers (type 3) If (objItem.FreeSpace <> "") AND (objItem.DriveType =3) Then - Percent = round (100 - (objItem.FreeSpace / objItem.Size) * 100, 0) + Percent = round (100 - (objItem.FreeSpace / objItem.Size) * 100, 2) Wscript.StdOut.WriteLine "" Wscript.StdOut.WriteLine " " Wscript.StdOut.WriteLine " "