tmisu

Notification to stdout daemon
git clone https://git.inz.fi/tmisu/
Log | Files | Refs | README | LICENSE

commit 3032f40ee951b908f083f9e4deb9c69c7bb1dcdd
parent 6f7afe3b93c96c82437f4aa3fedbf66ef3cac26b
Author: Santtu Lakkala <inz@inz.fi>
Date:   Sat, 26 Feb 2022 08:14:20 +0200

Change default timeout

Diffstat:
Msrc/tmisu.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/tmisu.c b/src/tmisu.c @@ -33,6 +33,7 @@ static struct pollfd *pfds = pfdb + 1; static DBusWatch *watches[MAX_WATCH] = { 0 }; static size_t nw = 1; static const char *delimiter = ", "; +static int default_exp_timeout = 60; int use_json = 0; int changed = 1; @@ -414,7 +415,7 @@ DBusHandlerResult handle_message(DBusConnection *connection, DBusMessage *messag dbus_message_iter_get_basic(&iter, &d.expiry_ms); if (d.expiry_ms < 0) - d.expiry_ms = 10000; + d.expiry_ms = default_exp_timeout * 1000; if (d.expiry_ms) expiry = time(NULL) + (d.expiry_ms + 999) / 1000; else