From 733fb7c85605aaf3f4a37d75b873352c4afd7fdc Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 4 Aug 2020 15:10:53 +0200 Subject: [PATCH] Fix #2132 --- apps/iis/local/mode/webservicestatistics.pm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/iis/local/mode/webservicestatistics.pm b/apps/iis/local/mode/webservicestatistics.pm index e19eb1ef9..fe32b0a6e 100644 --- a/apps/iis/local/mode/webservicestatistics.pm +++ b/apps/iis/local/mode/webservicestatistics.pm @@ -43,33 +43,33 @@ sub set_counters { $self->{maps_counters}->{sites} = [ { label => 'connections-attempt', nlabel => 'site.connections.attempt.persecond', set => { key_values => [ { name => 'connections_attempt', per_second => 1 } ], - output_template => 'connections attempt: %s/s', + output_template => 'connections attempt: %.2f/s', perfdatas => [ - { template => '%d', unit => '/s', min => 0, label_extra_instance => 1 } + { template => '%.2f', unit => '/s', min => 0, label_extra_instance => 1 } ] } }, { label => 'users-anonymous', nlabel => 'site.users.anonymous.persecond', display_ok => 0, set => { key_values => [ { name => 'anonymous_users', per_second => 1 } ], - output_template => 'anonymous users: %s/s', + output_template => 'anonymous users: %.2f/s', perfdatas => [ - { template => '%d', unit => '/s', min => 0, label_extra_instance => 1 } + { template => '%.2f', unit => '/s', min => 0, label_extra_instance => 1 } ] } }, { label => 'requests-post', nlabel => 'site.requests.post.persecond', set => { key_values => [ { name => 'requests_post', per_second => 1 } ], - output_template => 'requests post: %s/s', + output_template => 'requests post: %.2f/s', perfdatas => [ - { template => '%d', unit => '/s', min => 0, label_extra_instance => 1 } + { template => '%.2f', unit => '/s', min => 0, label_extra_instance => 1 } ] } }, { label => 'requests-get', nlabel => 'site.requests.get.persecond', set => { key_values => [ { name => 'requests_get', per_second => 1 } ], - output_template => 'requests get: %s/s', + output_template => 'requests get: %.2f/s', perfdatas => [ - { template => '%d', unit => '/s', min => 0, label_extra_instance => 1 } + { template => '%.2f', unit => '/s', min => 0, label_extra_instance => 1 } ] } },