SysStat Service: Porting code to JS/QML instead of an external bash

This commit is contained in:
LemmyCook 2025-09-06 20:50:49 -04:00
parent 36d3a50f21
commit 2bc1d53b18
3 changed files with 346 additions and 27 deletions

View file

@ -88,7 +88,7 @@ RowLayout {
}
NText {
text: `${SystemStatService.memoryUsageGb}G`
text: `${SystemStatService.memGb}G`
font.family: Settings.data.ui.fontFixed
font.pointSize: Style.fontSizeS * scaling
font.weight: Style.fontWeightMedium

View file

@ -40,7 +40,7 @@ NBox {
height: 68 * scaling
}
NCircleStat {
value: SystemStatService.memoryUsagePer
value: SystemStatService.memPercent
icon: "memory"
flat: true
contentScale: 0.8
@ -48,7 +48,7 @@ NBox {
height: 68 * scaling
}
NCircleStat {
value: SystemStatService.diskUsage
value: SystemStatService.diskPercent
icon: "hard_drive"
flat: true
contentScale: 0.8