Skip to content

Commit 162a3f8

Browse files
committed
bugfix for fractional GB entries
1 parent 0906c8a commit 162a3f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sonar/map.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _cast_to_mb(s):
100100
if s.endswith("M"):
101101
return int(s[:-1])
102102
elif s.endswith("G"):
103-
return 1000 * int(s[:-1])
103+
return 1000 * float(s[:-1])
104104
elif s == "0":
105105
return 0
106106
else:

sonar/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.4.3"
1+
__version__ = "0.4.4"

0 commit comments

Comments
 (0)