From: Michael Tremer Date: Wed, 29 Oct 2025 15:54:32 +0000 (+0000) Subject: time: Update the time when parsing relative timestamps X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4108cf1925f717188d885b63d36818cca20e7a44;p=telemetry.git time: Update the time when parsing relative timestamps Signed-off-by: Michael Tremer --- diff --git a/src/daemon/time.c b/src/daemon/time.c index aa82d5a..e88f86e 100644 --- a/src/daemon/time.c +++ b/src/daemon/time.c @@ -132,7 +132,9 @@ static int time_parse_relative(time_t* t, const char* arg, time_t now) { } // Now let's do the maths - return now + (direction * num * multiplier); + *t = now + (direction * num * multiplier); + + return 0; } /*