Re: [dev] [PATCH] slstatus: cpu_perc: make 100% equivalent of 1 cpu

2017-09-15 Thread Kurt Van Dijck
> Quentin Rameau: > >We are not collecting per-cpu statistics, so it's misleading at best. > > Maybe we should do that? > > From conky(1): > > >cpu (cpuN) > >CPU usage in percents. For SMP machines, the CPU number can be > >provided as an argument. ${cpu cpu0} is the total usage, and > >${cp

Re: [dev] [PATCH] slstatus: cpu_perc: make 100% equivalent of 1 cpu

2017-09-15 Thread Kurt Van Dijck
> > This commit allows to specify (statically) the number of CPU's (ncpu). > > This allows to show the cpu usage relative to 1 CPU. > > So, when 1 cpu is busy, 100% is shown. 2 cpu's busy: 200%, and so on. > > At this point, the configuration of ncpu is static. > > > > When no number is given (the

Re: [dev] [PATCH] slstatus: cpu_perc: make 100% equivalent of 1 cpu

2017-09-15 Thread ilf
Quentin Rameau: We are not collecting per-cpu statistics, so it's misleading at best. Maybe we should do that? From conky(1): cpu (cpuN) CPU usage in percents. For SMP machines, the CPU number can be provided as an argument. ${cpu cpu0} is the total usage, and ${cpu cpuX} (X >= 1) are in

Re: [dev] [PATCH] slstatus: cpu_perc: make 100% equivalent of 1 cpu

2017-09-15 Thread Quentin Rameau
> This commit allows to specify (statically) the number of CPU's (ncpu). > This allows to show the cpu usage relative to 1 CPU. > So, when 1 cpu is busy, 100% is shown. 2 cpu's busy: 200%, and so on. > At this point, the configuration of ncpu is static. > > When no number is given (the backward co

[dev] [PATCH] slstatus: cpu_perc: make 100% equivalent of 1 cpu

2017-09-14 Thread Kurt Van Dijck
This commit allows to specify (statically) the number of CPU's (ncpu). This allows to show the cpu usage relative to 1 CPU. So, when 1 cpu is busy, 100% is shown. 2 cpu's busy: 200%, and so on. At this point, the configuration of ncpu is static. When no number is given (the backward compatible opt