reduced float display size from x.xx to x.x
This commit is contained in:
parent
5fab2d7c37
commit
8846ddbb8c
1 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ def space_string(free):
|
|||
Returns a formatting string suitable for printing out free space: float for >1k, int otherwise.
|
||||
"""
|
||||
|
||||
return "%.2f%s" if free > 1024 else "%d%s"
|
||||
return "%.1f%s" if free > 1024 else "%d%s"
|
||||
|
||||
class Sysload:
|
||||
def __init__(self):
|
||||
|
@ -481,7 +481,7 @@ class StatsPart(Part):
|
|||
|
||||
# sysload
|
||||
self.fragments.append(style_color(settings.get_load_color(sysload.load1)))
|
||||
self.fragments.append("%.2f " %(sysload.load1))
|
||||
self.fragments.append("%.1f " %(sysload.load1))
|
||||
self.fragments.append(style_reset())
|
||||
|
||||
# tasks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue