1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-25 05:52:50 -05:00

Implement some data smoothing

This commit is contained in:
bbedward
2025-08-09 17:26:57 -04:00
parent b3310e3edd
commit 8bef7ded1e
5 changed files with 69 additions and 18 deletions

View File

@@ -57,9 +57,9 @@ Row {
StyledText {
text: {
if (DankgopService.cpuUsage === undefined || DankgopService.cpuUsage === null)
if (DankgopService.smoothedCpuUsage === undefined || DankgopService.smoothedCpuUsage === null)
return "--%"
return DankgopService.cpuUsage.toFixed(1) + "%"
return DankgopService.smoothedCpuUsage.toFixed(1) + "%"
}
font.pixelSize: Theme.fontSizeLarge
font.family: SettingsData.monoFontFamily