Skip to content

Commit 5c08bb7

Browse files
committed
Fix extra char after networks readouts
1 parent a7b70fe commit 5c08bb7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

library/stats.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def stats():
576576
upload_wlo, uploaded_wlo, download_wlo, downloaded_wlo = sensors.Net.stats(WLO_CARD, interval)
577577

578578
if THEME_DATA['STATS']['NET']['WLO']['UPLOAD']['TEXT'].get("SHOW", False):
579-
upload_wlo_text = f"{bytes2human(upload_wlo, '%(value).1f %(symbol)s/s'):>7}"
579+
upload_wlo_text = f"{bytes2human(upload_wlo, '%(value).1f %(symbol)s/s'):>10}"
580580
display.lcd.DisplayText(
581581
text=f"{upload_wlo_text:>9}",
582582
x=THEME_DATA['STATS']['NET']['WLO']['UPLOAD']['TEXT'].get("X", 0),
@@ -612,7 +612,7 @@ def stats():
612612
)
613613

614614
if THEME_DATA['STATS']['NET']['WLO']['DOWNLOAD']['TEXT'].get("SHOW", False):
615-
download_wlo_text = f"{bytes2human(download_wlo, '%(value).1f %(symbol)s/s'):>7}"
615+
download_wlo_text = f"{bytes2human(download_wlo, '%(value).1f %(symbol)s/s'):>10}"
616616
display.lcd.DisplayText(
617617
text=f"{download_wlo_text:>9}",
618618
x=THEME_DATA['STATS']['NET']['WLO']['DOWNLOAD']['TEXT'].get("X", 0),
@@ -650,7 +650,7 @@ def stats():
650650
upload_eth, uploaded_eth, download_eth, downloaded_eth = sensors.Net.stats(ETH_CARD, interval)
651651

652652
if THEME_DATA['STATS']['NET']['ETH']['UPLOAD']['TEXT'].get("SHOW", False):
653-
upload_eth_text = f"{bytes2human(upload_eth, '%(value).1f %(symbol)s/s'):>7}"
653+
upload_eth_text = f"{bytes2human(upload_eth, '%(value).1f %(symbol)s/s'):>10}"
654654
display.lcd.DisplayText(
655655
text=f"{upload_eth_text:>9}",
656656
x=THEME_DATA['STATS']['NET']['ETH']['UPLOAD']['TEXT'].get("X", 0),
@@ -686,7 +686,7 @@ def stats():
686686
)
687687

688688
if THEME_DATA['STATS']['NET']['ETH']['DOWNLOAD']['TEXT'].get("SHOW", False):
689-
download_eth_text = f"{bytes2human(download_eth, '%(value).1f %(symbol)s/s'):>7}"
689+
download_eth_text = f"{bytes2human(download_eth, '%(value).1f %(symbol)s/s'):>10}"
690690
display.lcd.DisplayText(
691691
text=f"{download_eth_text:>9}",
692692
x=THEME_DATA['STATS']['NET']['ETH']['DOWNLOAD']['TEXT'].get("X", 0),

res/themes/Cyberpunk-net/theme.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ STATS:
398398
DOWNLOAD:
399399
TEXT:
400400
SHOW: True
401-
X: 142
401+
X: 128
402402
Y: 338
403403
FONT: generale-mono/GeneraleMonoA.ttf
404404
FONT_SIZE: 23
@@ -417,7 +417,7 @@ STATS:
417417
UPLOAD:
418418
TEXT:
419419
SHOW: True
420-
X: 142
420+
X: 128
421421
Y: 383
422422
FONT: generale-mono/GeneraleMonoA.ttf
423423
FONT_SIZE: 23

0 commit comments

Comments
 (0)