blob: 671f145fb5b38c09cc2bdded3f4b88751776e04b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- plugin-sysstat/lxqtsysstat.cpp.orig 2025-06-22 20:12:06 UTC
+++ plugin-sysstat/lxqtsysstat.cpp
@@ -395,10 +395,11 @@ void LXQtSysStatContent::cpuLoadFrequencyUpdate(float
void LXQtSysStatContent::cpuLoadFrequencyUpdate(float user, float nice, float system, float other, float frequencyRate, uint)
{
- int y_system = static_cast<int>(system * 100.0 * frequencyRate);
- int y_user = static_cast<int>(user * 100.0 * frequencyRate);
- int y_nice = static_cast<int>(nice * 100.0 * frequencyRate);
- int y_other = static_cast<int>(other * 100.0 * frequencyRate);
+ //On FreeBSD do not multiple with frequencyrate in order to match top
+ int y_system = static_cast<int>(system * 100.0);
+ int y_user = static_cast<int>(user * 100.0);
+ int y_nice = static_cast<int>(nice * 100.0);
+ int y_other = static_cast<int>(other * 100.0);
int y_freq = static_cast<int>( 100.0 * frequencyRate);
toolTipInfo(tr("system: %1%<br>user: %2%<br>nice: %3%<br>other: %4%<br>freq: %5%", "CPU tooltip information")
|