fix precision percentage
This commit is contained in:
parent
6f965849f9
commit
5807ce5316
|
@ -80,7 +80,7 @@ sub set_counters {
|
|||
key_values => [ { name => 'prct_used' } ],
|
||||
output_template => 'Used : %.2f %%',
|
||||
perfdatas => [
|
||||
{ label => 'used_prct', value => 'prct_used_absolute', template => '%d', min => 0, max => 0,
|
||||
{ label => 'used_prct', value => 'prct_used_absolute', template => '%.2f', min => 0, max => 0,
|
||||
unit => '%' },
|
||||
],
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ sub set_counters {
|
|||
key_values => [ { name => 'prct_used' } ],
|
||||
output_template => 'Used : %.2f %%',
|
||||
perfdatas => [
|
||||
{ label => 'swap_prct', value => 'prct_used_absolute', template => '%d', min => 0, max => 0,
|
||||
{ label => 'swap_prct', value => 'prct_used_absolute', template => '%.2f', min => 0, max => 0,
|
||||
unit => '%' },
|
||||
],
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ sub set_counters {
|
|||
key_values => [ { name => 'prct_used' } ],
|
||||
output_template => 'Used : %.2f %%',
|
||||
perfdatas => [
|
||||
{ label => 'used_prct', value => 'prct_used_absolute', template => '%d', min => 0, max => 0,
|
||||
{ label => 'used_prct', value => 'prct_used_absolute', template => '%.2f', min => 0, max => 0,
|
||||
unit => '%' },
|
||||
],
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue