mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Show float RAM values for boards // Issue #286
This commit is contained in:
@ -56,7 +56,10 @@ def cli(query, json_output): # pylint: disable=R0912
|
|||||||
if "maximum_ram_size" in data.get("upload", None):
|
if "maximum_ram_size" in data.get("upload", None):
|
||||||
ram_size = int(data['upload']['maximum_ram_size'])
|
ram_size = int(data['upload']['maximum_ram_size'])
|
||||||
if ram_size >= 1024:
|
if ram_size >= 1024:
|
||||||
ram_size = "%dKb" % (ram_size / 1024)
|
if ram_size % 1024:
|
||||||
|
ram_size = "%.1fKb" % (ram_size / 1024.0)
|
||||||
|
else:
|
||||||
|
ram_size = "%dKb" % (ram_size / 1024)
|
||||||
else:
|
else:
|
||||||
ram_size = "%dB" % ram_size
|
ram_size = "%dB" % ram_size
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user