[mate-notification-daemon] 01/02: debian/patches: Add 0001_fix_high_cpu_usage_with_large_timeouts.patch. (LP: #1450804)
Vangelis Mouhtsis
gnugr-guest at moszumanska.debian.org
Thu Aug 17 08:14:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
gnugr-guest pushed a commit to branch parrot/3.7
in repository mate-notification-daemon.
commit a089acb7b559a8706fa1987d8c5673df51a38415
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date: Thu Aug 17 01:35:49 2017 +0100
debian/patches: Add 0001_fix_high_cpu_usage_with_large_timeouts.patch. (LP: #1450804)
---
.../0001_fix_high_cpu_usage_with_large_timeouts.patch | 16 ++++++++++++++++
debian/patches/series | 1 +
2 files changed, 17 insertions(+)
diff --git a/debian/patches/0001_fix_high_cpu_usage_with_large_timeouts.patch b/debian/patches/0001_fix_high_cpu_usage_with_large_timeouts.patch
new file mode 100644
index 0000000..8d85fba
--- /dev/null
+++ b/debian/patches/0001_fix_high_cpu_usage_with_large_timeouts.patch
@@ -0,0 +1,16 @@
+Author: Jury Verrigni <jury.verrigni at gmail.com>
+Description: Fixes high cpu usage with large timeouts
+
+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.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c18cddb
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001_fix_high_cpu_usage_with_large_timeouts.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-notification-daemon.git
More information about the pkg-mate-commits
mailing list