From 9553a857997b58e40c04253d8ef492485ce3a911 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Mon, 9 Oct 2017 15:03:27 +0200 Subject: [PATCH] change unit --- storage/kaminario/restapi/mode/systemusage.pm | 16 ++++++++-------- storage/kaminario/restapi/mode/volumeusage.pm | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/storage/kaminario/restapi/mode/systemusage.pm b/storage/kaminario/restapi/mode/systemusage.pm index 13c504f6e..d865a334b 100644 --- a/storage/kaminario/restapi/mode/systemusage.pm +++ b/storage/kaminario/restapi/mode/systemusage.pm @@ -55,19 +55,19 @@ sub set_counters { }, { label => 'latency-inner', set => { key_values => [ { name => 'latency_inner' } ], - output_template => 'Latency Inner : %.6fs', + output_template => 'Latency Inner : %.6fms', perfdatas => [ { label => 'latency_inner', value => 'latency_inner_absolute', template => '%.6f', - min => 0, unit => 's' }, + min => 0, unit => 'ms' }, ], } }, { label => 'latency-outer', set => { key_values => [ { name => 'latency_outer' } ], - output_template => 'Latency Outer : %.6fs', + output_template => 'Latency Outer : %.6fms', perfdatas => [ { label => 'latency_outer', value => 'latency_outer_absolute', template => '%.6f', - min => 0, unit => 's' }, + min => 0, unit => 'ms' }, ], } }, @@ -95,19 +95,19 @@ sub set_counters { }, { label => 'bs-latency-inner', set => { key_values => [ { name => 'latency_inner' }, { name => 'display' } ], - output_template => 'Latency Inner : %.6fs', + output_template => 'Latency Inner : %.6fms', perfdatas => [ { label => 'latency_inner', value => 'latency_inner_absolute', template => '%.6f', - min => 0, unit => 's', label_extra_instance => 1, instance_use => 'display_absolute' }, + min => 0, unit => 'ms', label_extra_instance => 1, instance_use => 'display_absolute' }, ], } }, { label => 'bs-latency-outer', set => { key_values => [ { name => 'latency_outer' }, { name => 'display' } ], - output_template => 'Latency Outer : %.6fs', + output_template => 'Latency Outer : %.6fms', perfdatas => [ { label => 'latency_outer', value => 'latency_outer_absolute', template => '%.6f', - min => 0, unit => 's', label_extra_instance => 1, instance_use => 'display_absolute' }, + min => 0, unit => 'ms', label_extra_instance => 1, instance_use => 'display_absolute' }, ], } }, diff --git a/storage/kaminario/restapi/mode/volumeusage.pm b/storage/kaminario/restapi/mode/volumeusage.pm index f756bc0de..0a3078e8f 100644 --- a/storage/kaminario/restapi/mode/volumeusage.pm +++ b/storage/kaminario/restapi/mode/volumeusage.pm @@ -54,19 +54,19 @@ sub set_counters { }, { label => 'latency-inner', set => { key_values => [ { name => 'latency_inner' }, { name => 'display' } ], - output_template => 'Latency Inner : %.6fs', + output_template => 'Latency Inner : %.6fms', perfdatas => [ { label => 'latency_inner', value => 'latency_inner_absolute', template => '%.6f', - min => 0, unit => 's', label_extra_instance => 1, instance_use => 'display_absolute' }, + min => 0, unit => 'ms', label_extra_instance => 1, instance_use => 'display_absolute' }, ], } }, { label => 'latency-outer', set => { key_values => [ { name => 'latency_outer' }, { name => 'display' } ], - output_template => 'Latency Outer : %.6fs', + output_template => 'Latency Outer : %.6fms', perfdatas => [ { label => 'latency_outer', value => 'latency_outer_absolute', template => '%.6f', - min => 0, unit => 's', label_extra_instance => 1, instance_use => 'display_absolute' }, + min => 0, unit => 'ms', label_extra_instance => 1, instance_use => 'display_absolute' }, ], } },