Commit d714e92a authored by Rafael Monnerat's avatar Rafael Monnerat

slapos/collect: Use float() always

  This normalizes the result on python2 and python3, and as well, makes the
  result more accurate.
parent 6fa65588
......@@ -417,11 +417,11 @@ class Database:
collected_entry_dict[partition_free] = []
collected_entry_dict[partition_used].append(
{'entry': int(used)/1024,
{'entry': float(used)/1024,
'time': "%s %s" % (__date, str(__time))})
collected_entry_dict[partition_free].append(
{'entry': int(free)/1024,
{'entry': float(free)/1024,
'time': "%s %s" % (__date, str(__time))})
return collected_entry_dict
......
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