Commit 65788d54 authored by 胡凯旋's avatar 胡凯旋

fix float /

parent 1b86c0f1
......@@ -46,9 +46,9 @@ class RDSCollector(object):
for point in datapoints:
rds_name = rds_instances[point['instanceId']]
avg_metric_family.add_metric([rds_name], point['Average']/100, point['timestamp']/1000)
max_metric_family.add_metric([rds_name], point['Maximum']/100, point['timestamp']/1000)
avg_metric_family.add_metric([rds_name], point['Average']/100.0, point['timestamp']/1000)
max_metric_family.add_metric([rds_name], point['Maximum']/100.0, point['timestamp']/1000)
metrics.extend([avg_metric_family, max_metric_family])
for m in metrics:
......@@ -61,4 +61,4 @@ def main():
time.sleep(1)
if __name__ == '__main__':
main()
\ No newline at end of file
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment