Skip to content

Commit 2b9c52a

Browse files
authored
Update stats.py to add RAM total
Added display_themed_value for TOTAL memory.
1 parent 02072f9 commit 2b9c52a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

library/stats.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,13 @@ def stats():
354354
unit=" M"
355355
)
356356

357+
display_themed_value(
358+
theme_data=memory_stats_theme_data['VIRTUAL']['TOTAL'],
359+
value=int((sensors.Memory.virtual_free() + sensors.Memory.virtual_used()) / 1000000),
360+
min_size=5,
361+
unit=" M"
362+
)
363+
357364

358365
class Disk:
359366
@staticmethod

0 commit comments

Comments
 (0)