1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-11 07:52:50 -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 const cpu = data.cpu
cpuSampleCount++ cpuSampleCount++
// Only update CPU data if we have had at least 2 samples (first sample is inaccurate) // Use dankgop CPU numbers directly without modification
if (cpuSampleCount >= 2) { cpuUsage = cpu.usage || 0
cpuUsage = cpu.usage || 0 cpuFrequency = cpu.frequency || 0
cpuFrequency = cpu.frequency || 0 cpuTemperature = cpu.temperature || 0
cpuTemperature = cpu.temperature || 0 cpuCores = cpu.count || 1
cpuCores = cpu.count || 1 cpuModel = cpu.model || ""
cpuModel = cpu.model || "" perCoreCpuUsage = cpu.coreUsage || []
perCoreCpuUsage = cpu.coreUsage || [] addToHistory(cpuHistory, cpuUsage)
addToHistory(cpuHistory, cpuUsage)
}
// Always update cursor data for next sampling // Always update cursor data for next sampling
if (cpu.cursor) { if (cpu.cursor) {