mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 00:20:45 +00:00
The previous implementation read /proc/stat once and calculated CPU percentage from cumulative counters since boot. This gave a long-term average that barely reflected short-term load changes. Now we store the previous /proc/stat reading and calculate the delta between consecutive samples, giving accurate real-time CPU usage that properly reflects current system load. This is the same approach we already use for network speed calculation. Co-Authored-By: Claude <noreply@anthropic.com>