fix precision percentage

This commit is contained in:
garnier-quentin 2019-06-13 15:07:36 +02:00
parent 6f965849f9
commit 5807ce5316
2 changed files with 3 additions and 3 deletions

View File

@ -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 => '%' },
],
}

View File

@ -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 => '%' },
],
}