Skip to content
Snippets Groups Projects
Commit 687e932b authored by jkerdreu's avatar jkerdreu
Browse files

fix round() for rh %

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/fork@1535 b32b6428-25c9-4566-ad07-03861ab6144f
parent 776d2ac8
Branches
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ class Node(object):
try:
self.devs[0].attributes[0].value = pkt.values[0][2]/100.0
self.devs[1].attributes[0].value = pkt.values[1][2]/10.0
self.devs[2].attributes[0].value = round(pkt.values[2][2]/10.0)
self.devs[2].attributes[0].value = int(round(pkt.values[2][2]/10.0))
except IndexError:
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment