1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-10 07:25:37 -05:00

remove sample filtering

This commit is contained in:
bbedward
2025-08-10 13:43:50 -04:00
parent 78c38a898c
commit 62e1aa8ae8

View File

@@ -281,16 +281,14 @@ Singleton {
const cpu = data.cpu
cpuSampleCount++
// Only update CPU data if we have had at least 2 samples (first sample is inaccurate)
if (cpuSampleCount >= 2) {
cpuUsage = cpu.usage || 0
cpuFrequency = cpu.frequency || 0
cpuTemperature = cpu.temperature || 0
cpuCores = cpu.count || 1
cpuModel = cpu.model || ""
perCoreCpuUsage = cpu.coreUsage || []
addToHistory(cpuHistory, cpuUsage)
}
// Use dankgop CPU numbers directly without modification
cpuUsage = cpu.usage || 0
cpuFrequency = cpu.frequency || 0
cpuTemperature = cpu.temperature || 0
cpuCores = cpu.count || 1
cpuModel = cpu.model || ""
perCoreCpuUsage = cpu.coreUsage || []
addToHistory(cpuHistory, cpuUsage)
// Always update cursor data for next sampling
if (cpu.cursor) {