mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
parent
e7eb28869c
commit
2b66ed321e
1 changed files with 6 additions and 2 deletions
|
@ -171,8 +171,12 @@ while (($key, $value) = each %dom)
|
|||
|
||||
# Calc a percentage based on the _total_ available CPU time
|
||||
$tmp = 0;
|
||||
if ($tcpuavail != 0) {
|
||||
$tmp = ( $dom{$key}->{'diff'} / $tcpuavail ) * 100;
|
||||
$dom{$key}->{'pc_tcpu'} = sprintf("%.2f", $tmp);
|
||||
} else {
|
||||
$dom{$key}->{'pc_tcpu'} = "U";
|
||||
}
|
||||
|
||||
if ( $debug )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue