summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJury Verrigni <[email protected]>2017-08-09 14:35:37 +0100
committerJury Verrigni <[email protected]>2017-08-09 14:35:37 +0100
commit296116088fca1ea8a261c49233fec407bd9098f6 (patch)
tree7a574a4df00caa6ceaf18dbb333d062a3f955aec
parent0a84eac2c5115d6a21e98e4797fbf6407cf5712b (diff)
downloadmate-notification-daemon-296116088fca1ea8a261c49233fec407bd9098f6.tar.bz2
mate-notification-daemon-296116088fca1ea8a261c49233fec407bd9098f6.tar.xz
Fixes high cpu usage with large timeouts
-rw-r--r--src/daemon/daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index 72b94a4..4b81c3c 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -743,7 +743,7 @@ static void _calculate_timeout(NotifyDaemon* daemon, NotifyTimeout* nt, int time
theme_set_notification_timeout(nt->nw, timeout);
- glong usec = timeout * 1000; /* convert from msec to usec */
+ glong usec = timeout * 1000L; /* convert from msec to usec */
/*
* If it's less than 0, wrap around back to MAXLONG.