From 296116088fca1ea8a261c49233fec407bd9098f6 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/daemon/daemon.c') 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