Skip to content

Commit

Permalink
Changing return type, so large values are properly graphed
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-ten committed Jul 17, 2015
1 parent 12ff387 commit 8a2c295
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions twemproxy/python_modules/twemproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
Expand Down Expand Up @@ -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)

0 comments on commit 8a2c295

Please sign in to comment.