summaryrefslogtreecommitdiff
path: root/x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.cpp
diff options
context:
space:
mode:
authorJesper Schmitz Mouridsen <jsm@FreeBSD.org>2021-05-08 18:39:52 +0200
committerJesper Schmitz Mouridsen <jsm@FreeBSD.org>2021-05-08 18:52:00 +0200
commitf8f6ed4aabdcbc2ad837c07a86eb0140dad0c267 (patch)
tree0203796bff64efd46f436bfc88d7c416870cba90 /x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.cpp
parentx11/qterminal: Update to 0.17.0 (diff)
x11-wm/lxqt-panel: Update to 0.17.1
Diffstat (limited to 'x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.cpp')
-rw-r--r--x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.cpp b/x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.cpp
new file mode 100644
index 000000000000..cbd95ee5e256
--- /dev/null
+++ b/x11-wm/lxqt-panel/files/patch-plugin-sysstat_lxqtsysstat.cpp
@@ -0,0 +1,18 @@
+--- plugin-sysstat/lxqtsysstat.cpp.orig 2021-05-02 21:18:35 UTC
++++ plugin-sysstat/lxqtsysstat.cpp
+@@ -386,10 +386,11 @@ void LXQtSysStatContent::clearLine()
+
+ 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")