diff options
author | Christian Hesse <mail@eworm.de> | 2015-06-30 08:49:17 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2015-06-30 08:49:17 +0200 |
commit | 9d7d9e101b0306df50fa96eb4485b4b1f7c8b489 (patch) | |
tree | 9af182eca5bc6e5de0d8287c280b8f7e773bb6ba | |
parent | 0221cdbfdf8fb923b2aa9489590adc2c324f3f78 (diff) | |
download | journal-notify-9d7d9e101b0306df50fa96eb4485b4b1f7c8b489.tar.gz journal-notify-9d7d9e101b0306df50fa96eb4485b4b1f7c8b489.tar.zst |
unbreak default timeout
-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': |