diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-17 19:04:34 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-17 19:04:34 +0200 |
| commit | c521d9eb71c9ca96348598d20eecb5ffd746aabf (patch) | |
| tree | 7ffcc2d0426bfaeb6d6944c9360466daed864876 /bin/cache-sample.sh | |
| parent | 1aa67dbe3e711617895d7b1d6e4dffccc74fa95a (diff) | |
| download | conky-theme-udt-c521d9eb71c9ca96348598d20eecb5ffd746aabf.tar.gz conky-theme-udt-c521d9eb71c9ca96348598d20eecb5ffd746aabf.zip | |
feat: add a byte-rate counter for interface statistics
Mirrors new_cpu_counter: cumulative counters need two samples to yield a
rate, and each direction carries its own previous reading.
Clamps a negative delta to zero rather than letting a 32-bit wrap or an
interface reset produce a spike. One bogus sample sets the shared autoscale
and flattens the entire window.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'bin/cache-sample.sh')
0 files changed, 0 insertions, 0 deletions
