mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-10-09 15:58:34 +00:00
3c8ff48b4e
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>