Skip to content

Commit

Permalink
Ensure RAM GB value is an int not a float
Browse files Browse the repository at this point in the history
  • Loading branch information
bennuttall committed Feb 22, 2021
1 parent a591c0d commit e6495de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpiozero/pins/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ def __format__(self, format_spec):
if specs['memory'] < 1024:
specs['memory_unit'] = "MB"
else:
specs['memory'] /= 1024
specs['memory'] = int(specs['memory'] / 1024)
specs['memory_unit'] = "GB"
return dedent("""\
{style:bold}Revision {style:reset}: {revision}
Expand Down

0 comments on commit e6495de

Please sign in to comment.