summaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-12-01 17:50:17 +0300
committermonsta <[email protected]>2015-12-01 17:50:17 +0300
commit5e203bc024a3d8a34921ae237ae595002889bf12 (patch)
tree9c01ca9d81f2d20ae44895037b6d786295a19d80 /src/util.cpp
parenteeeaff5770c91943baa3c506da3d05b7092c7690 (diff)
downloadmate-system-monitor-5e203bc024a3d8a34921ae237ae595002889bf12.tar.bz2
mate-system-monitor-5e203bc024a3d8a34921ae237ae595002889bf12.tar.xz
process properties: use proper format for "CPU time" property
it should be the same as in "CPU time" column of process table now adapted from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=3c1f17877f95fcac7f5d437739305e245af7ba8b
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 3573f00..0690d48 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -85,8 +85,8 @@ static inline unsigned divide(unsigned *q, unsigned *r, unsigned d)
* @param d: duration in centiseconds
* @type d: unsigned
*/
-static char *
-format_duration_for_display(unsigned centiseconds)
+gchar *
+procman::format_duration_for_display(unsigned centiseconds)
{
unsigned weeks = 0, days = 0, hours = 0, minutes = 0, seconds = 0;