From 9d7d9e101b0306df50fa96eb4485b4b1f7c8b489 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 30 Jun 2015 08:49:17 +0200 Subject: unbreak default timeout --- journal-notify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/journal-notify.c b/journal-notify.c index 0a9fd39..f7ee36a 100644 --- a/journal-notify.c +++ b/journal-notify.c @@ -67,7 +67,7 @@ int notify(const char * identifier, const char * message, uint8_t priority, /* NOTIFY_EXPIRES_NEVER == 0 */ if (timeout >= 0) - notify_notification_set_timeout(notification, timeout * 1000); + notify_notification_set_timeout(notification, timeout); notify_notification_set_urgency(notification, urgency); @@ -219,6 +219,7 @@ int main(int argc, char **argv) { timeout = atoi(optarg); if (verbose > 1) printf("Notifications will be displayed for %d seconds.\n", timeout); + timeout *= 1000; break; case 'X': -- cgit v1.2.3-54-g00ecf