From 66b573229f870bd7edc7785d5d9a878b6fce1e69 Mon Sep 17 00:00:00 2001 From: Jury Verrigni Date: Wed, 9 Aug 2017 14:35:37 +0100 Subject: Fixes high cpu usage with large timeouts --- src/daemon/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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. -- cgit v1.2.1