Skip to content

Commit 00dd3ab

Browse files
authored
Merge pull request #794 from czy0403/master
Fix memory value truncation in GUI display #413
2 parents df7b53b + 45cae3d commit 00dd3ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jtop/gui/lib/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def value_to_string(value, unit, type, func):
128128
value_string = str(value)
129129
if value >= 100:
130130
# value_string = value_string.rstrip('0').rstrip('.')
131-
value_string = value_string[:3].rstrip('.')
131+
value_string = value_string[:4].rstrip('.')
132132
return "{value}{unit}{type}".format(value=value_string, unit=unit, type=type)
133133

134134

0 commit comments

Comments
 (0)