Skip to content

Commit

Permalink
bugfix for fractional GB entries
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Jul 8, 2020
1 parent 0906c8a commit 162a3f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sonar/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _cast_to_mb(s):
if s.endswith("M"):
return int(s[:-1])
elif s.endswith("G"):
return 1000 * int(s[:-1])
return 1000 * float(s[:-1])
elif s == "0":
return 0
else:
Expand Down
2 changes: 1 addition & 1 deletion sonar/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.3"
__version__ = "0.4.4"

0 comments on commit 162a3f8

Please sign in to comment.