Hello!
I calculate CPU utilization in percent using this expression:
100*last("system.cpu.load[,avg1]")/last("system.cpu.num[max]")
But sometimes when process queue is very long this value can grow more than 100%. Please tell me how to modify my expression to ceil (limit to 100) its value.
For example if it's 95% then return it as is. And if it's 105% then return just 100%
I calculate CPU utilization in percent using this expression:
100*last("system.cpu.load[,avg1]")/last("system.cpu.num[max]")
But sometimes when process queue is very long this value can grow more than 100%. Please tell me how to modify my expression to ceil (limit to 100) its value.
For example if it's 95% then return it as is. And if it's 105% then return just 100%
Comment