Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2020 18:18:11 +0000 (UTC)
From:      Dmitri Goutnik <dmgk@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r536140 - in head/x11-toolkits/plasma5-kdeplasma-addons: . files
Message-ID:  <202005211818.04LIIBrB071400@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dmgk
Date: Thu May 21 18:18:10 2020
New Revision: 536140
URL: https://svnweb.freebsd.org/changeset/ports/536140

Log:
  x11-toolkits/plasma5-kdeplasma-addons: Fix "System Load Viewer" plasmoid on FreeBSD
  
  - Fix stuck CPU Monitor bar. It was updated only after "cpu/system/iowait"
    metric was read and because this metric is not available on FreeBSD, the bar
    was stuck on initial value.
  
  - Fix plasmoid tooltip, it was erroring out on reading non-existing
    "mem/cache/dirty" and "mem/cache/writeback" metrics.
  
  PR:		245986
  Approved by:	tcberner (kde)

Added:
  head/x11-toolkits/plasma5-kdeplasma-addons/files/
  head/x11-toolkits/plasma5-kdeplasma-addons/files/patch-applets_systemloadviewer_package_contents_ui_SystemLoadViewer.qml   (contents, props changed)
Modified:
  head/x11-toolkits/plasma5-kdeplasma-addons/Makefile

Modified: head/x11-toolkits/plasma5-kdeplasma-addons/Makefile
==============================================================================
--- head/x11-toolkits/plasma5-kdeplasma-addons/Makefile	Thu May 21 16:44:03 2020	(r536139)
+++ head/x11-toolkits/plasma5-kdeplasma-addons/Makefile	Thu May 21 18:18:10 2020	(r536140)
@@ -2,6 +2,7 @@
 
 PORTNAME=	kdeplasma-addons
 DISTVERSION=	${KDE_PLASMA_VERSION}
+PORTREVISION=	1
 CATEGORIES=	x11-toolkits kde kde-plasma
 
 MAINTAINER=	kde@FreeBSD.org

Added: head/x11-toolkits/plasma5-kdeplasma-addons/files/patch-applets_systemloadviewer_package_contents_ui_SystemLoadViewer.qml
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-toolkits/plasma5-kdeplasma-addons/files/patch-applets_systemloadviewer_package_contents_ui_SystemLoadViewer.qml	Thu May 21 18:18:10 2020	(r536140)
@@ -0,0 +1,37 @@
+--- applets/systemloadviewer/package/contents/ui/SystemLoadViewer.qml.orig	2020-03-31 14:08:40 UTC
++++ applets/systemloadviewer/package/contents/ui/SystemLoadViewer.qml
+@@ -179,12 +179,15 @@ Item {
+         onNewData: {
+             if (sourceName == sysLoad) {
+                 totalCpuLoadProportions[0] = fitCpuLoad(data.value)
++                totalCpuLoadProportionsChanged()
+             }
+             else if (sourceName == userLoad) {
+                 totalCpuLoadProportions[1] = fitCpuLoad(data.value)
++                totalCpuLoadProportionsChanged()
+             }
+             else if (sourceName == niceLoad) {
+                 totalCpuLoadProportions[2] = fitCpuLoad(data.value)
++                totalCpuLoadProportionsChanged()
+             }
+             else if (sourceName == ioWait) {
+                 totalCpuLoadProportions[3] = fitCpuLoad(data.value)
+@@ -192,6 +195,7 @@ Item {
+             }
+             else if (sourceName == memApplication) {
+                 memoryUsageProportions[0] = fitMemoryUsage(data.value)
++                memoryUsageProportionsChanged()
+             }
+             else if (sourceName == memBuffers) {
+                 memoryUsageProportions[1] = fitMemoryUsage(data.value)
+@@ -250,8 +254,8 @@ Item {
+         var swapTotal = swapFree + swapUsed
+         var swapPart = i18n("Swap: %1/%2 MiB", Math.round(swapUsed), Math.round(swapTotal))
+ 
+-        var cacheDirty = parseFloat(dataSource.data[dataSource.cacheDirty].value) / 1024
+-        var cacheWriteback = parseFloat(dataSource.data[dataSource.cacheWriteback].value) / 1024
++        var cacheDirty = parseFloat(dataSource.data[dataSource.cacheDirty] ? dataSource.data[dataSource.cacheDirty].value : 0) / 1024
++        var cacheWriteback = parseFloat(dataSource.data[dataSource.cacheWriteback] ? dataSource.data[dataSource.cacheWriteback].value : 0) / 1024
+         var cachePart = i18n("Cache Dirty, Writeback: %1 MiB, %2 MiB", Math.round(cacheDirty), Math.round(cacheWriteback))
+ 
+         if (cpuClockPart === "") {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005211818.04LIIBrB071400>