Commit f1f4973d authored by Kazunori Fujiwara's avatar Kazunori Fujiwara
Browse files

space fix


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@686 e5f2f494-b856-4b98-b285-d166d9295462
parent 454b12d9
......@@ -10,7 +10,7 @@ import os
bossgroup = 'Boss'
myname = 'statsd'
debug = 1
debug = 0
def total(s):
def totalsub(d,s):
......@@ -72,7 +72,7 @@ def dicttoxml(stats, level = 0):
for l in s.keys():
output += space + ' <from from="%s">\n' % l \
+ dicttoxmlsub(s[l], level+2) \
+ space + ' </from>\n'
+ space + ' </from>\n'
output += space + '</component>\n'
return output
......@@ -148,4 +148,4 @@ def collector(statgroup,step,statpath,statcount):
last_recvd_time = time.time()
if __name__ == '__main__':
collector('statistics', 10, '/tmp/stats', 100)
collector('statistics', 10, '/tmp/stats.xml', 100)
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