CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]   2023/05/18 06:15:20

Modified files:
        sysutils/xstatbar: Makefile 
        sysutils/xstatbar/patches: patch-stats_c patch-stats_h 
                                   patch-xstatbar_c 

Log message:
xstatbar tweaks to shorten the output a little to help not overrun the
display line on systems with more cores

- just print single "cpu:" text before all cores rather than one for
each core (also avoids odd gaps in numbering with SMT-disabled cores;
on intel big/little the P cores have SMT but E cores don't, so there
you get cpu0:, cpu2:, cpu4:, cpu5:, cpu6:, [...])

- move the cpuonline check to avoid double gap when a core is skipped

- don't print textual cpu% (user/nice/sys/spin/intr/idle) per-core
when there are a larger number of cores

(I considered collapsing all cpus into a signal combined output instead,
but that means you can't distinguish between e.g. "one core pegged at
100% others idle" and "all cores lightly loaded")

Reply via email to