diff options
-rw-r--r-- | journal-notify.c | 3 |
1 files changed, 2 insertions, 1 deletions
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': |