summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJury Verrigni <[email protected]>2017-08-09 14:35:37 +0100
committerraveit65 <[email protected]>2017-08-10 19:18:24 +0200
commit66b573229f870bd7edc7785d5d9a878b6fce1e69 (patch)
treef377f56fdeb6b4fa788531267cac58182e701003
parent387fa9979c451d0e8671b215fdb11c32148994c8 (diff)
downloadmate-notification-daemon-66b573229f870bd7edc7785d5d9a878b6fce1e69.tar.bz2
mate-notification-daemon-66b573229f870bd7edc7785d5d9a878b6fce1e69.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.