Skip to content

Commit 37b6214

Browse files
committed
Merge pull request ganglia#206 from tony-ten/master
Changing return type, so large values are properly graphed
2 parents 12ff387 + 8a2c295 commit 37b6214

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

twemproxy/python_modules/twemproxy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ def metric_init(params):
136136
'name' : 'XXX',
137137
'call_back' : get_value,
138138
'time_max' : 60,
139-
'value_type' : 'uint',
139+
'value_type' : 'float',
140140
'units' : 'connections',
141141
'slope' : 'both',
142-
'format' : '%u',
142+
'format' : '%.0f',
143143
'description' : 'XXX',
144144
'groups' : 'twemproxy',
145145
}
@@ -269,4 +269,4 @@ def metric_cleanup():
269269
metric_init(params)
270270
for d in descriptors:
271271
v = d['call_back'](d['name'])
272-
print 'value for %s is %u' % (d['name'], v)
272+
print 'value for %s is %.0f' % (d['name'], v)

0 commit comments

Comments
 (0)