From 8a2c295626e533615e5ba29bc860dae9e1aad086 Mon Sep 17 00:00:00 2001 From: Tony Baltazar Date: Fri, 17 Jul 2015 13:39:23 -0700 Subject: [PATCH] Changing return type, so large values are properly graphed --- twemproxy/python_modules/twemproxy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twemproxy/python_modules/twemproxy.py b/twemproxy/python_modules/twemproxy.py index f6f73a4b..26368b18 100644 --- a/twemproxy/python_modules/twemproxy.py +++ b/twemproxy/python_modules/twemproxy.py @@ -136,10 +136,10 @@ def metric_init(params): 'name' : 'XXX', 'call_back' : get_value, 'time_max' : 60, - 'value_type' : 'uint', + 'value_type' : 'float', 'units' : 'connections', 'slope' : 'both', - 'format' : '%u', + 'format' : '%.0f', 'description' : 'XXX', 'groups' : 'twemproxy', } @@ -269,4 +269,4 @@ def metric_cleanup(): metric_init(params) for d in descriptors: v = d['call_back'](d['name']) - print 'value for %s is %u' % (d['name'], v) + print 'value for %s is %.0f' % (d['name'], v)