1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 21:45:38 -05:00

Revert "Implement some data smoothing"

This reverts commit 8bef7ded1e.
This commit is contained in:
bbedward
2025-08-09 20:01:26 -04:00
parent 8bef7ded1e
commit 218eefbe19
5 changed files with 18 additions and 69 deletions

View File

@@ -59,10 +59,10 @@ Rectangle {
name: "memory"
size: Theme.iconSize - 8
color: {
if (DankgopService.smoothedCpuUsage > 80)
if (DankgopService.cpuUsage > 80)
return Theme.tempDanger
if (DankgopService.smoothedCpuUsage > 60)
if (DankgopService.cpuUsage > 60)
return Theme.tempWarning
return Theme.surfaceText
@@ -72,12 +72,12 @@ Rectangle {
StyledText {
text: {
if (DankgopService.smoothedCpuUsage === undefined
|| DankgopService.smoothedCpuUsage === null
|| DankgopService.smoothedCpuUsage === 0) {
if (DankgopService.cpuUsage === undefined
|| DankgopService.cpuUsage === null
|| DankgopService.cpuUsage === 0) {
return "--%"
}
return DankgopService.smoothedCpuUsage.toFixed(0) + "%"
return DankgopService.cpuUsage.toFixed(0) + "%"
}
font.pixelSize: Theme.fontSizeSmall
font.weight: Font.Medium