Automatic units in memory metrics
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- python
- Domain
- observability
Research direction
Start in stats.py at the Memory class and inspect how the virtual memory metrics are currently passed to display_themed_value. Check the existing bytes2human usage and apply the requested automatic conversion consistently to virtual used, free, and total values. Done means these memory metrics display human-readable units automatically.
Written by the indexing model from the issue text.
Description
Automatic unit conversion for memory metrics via bytes2human in stats.py Memory class:
display_themed_value(
theme_data=memory_stats_theme_data['VIRTUAL']['USED'],
value=f"{bytes2human(sensors.Memory.virtual_used(), '%(value).1f %(symbol)s')}",
min_size=6
)
display_themed_value(
theme_data=memory_stats_theme_data['VIRTUAL']['FREE'],
value=f"{bytes2human(sensors.Memory.virtual_free(), '%(value).1f %(symbol)s')}",
min_size=6
)
display_themed_value(
theme_data=memory_stats_theme_data['VIRTUAL']['TOTAL'],
value=f"{bytes2human(sensors.Memory.virtual_free() + sensors.Memory.virtual_used(), '%(value).1f %(symbol)s')}",
min_size=6
)```
- Dominant language
- Rich Text Format
- Stars
- 2.3k
- Forks
- 412
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 7
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mathoudebine/turing-smart-screen-python
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
mathoudebine/turing-smart-screen-python#896 · 1 comment ·
-
enhancement
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
mathoudebine/turing-smart-screen-python#557 · 2 comments · 3 reactions ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 42/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
mathoudebine/turing-smart-screen-python#1090 · 2 comments ·
All issues in mathoudebine/turing-smart-screen-python
Similar issues
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug needs triage processor/cumulativetodelta
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
open-telemetry/opentelemetry-collector-contrib#51303 · 2 comments ·