aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-03-17 10:14:31 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-03-17 10:14:31 +0000
commit1999b5b9ed2006874582eba93cc6961559fa9ddb (patch)
tree0755628ae535633d424fc21b0673d8de0193d889 /src
parent4f917493bfea63471dc7378cac7916ed19564710 (diff)
downloadrspamd-1999b5b9ed2006874582eba93cc6961559fa9ddb.tar.gz
rspamd-1999b5b9ed2006874582eba93cc6961559fa9ddb.zip
[Minor] Fix some `uptime` output artefacts
Diffstat (limited to 'src')
-rw-r--r--src/client/rspamc.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx
index 47362a5e3..ed13f86fd 100644
--- a/src/client/rspamc.cxx
+++ b/src/client/rspamc.cxx
@@ -1,5 +1,5 @@
/*-
- * Copyright 2016 Vsevolod Stakhov
+ * Copyright 2023 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1243,7 +1243,7 @@ rspamc_uptime_output(FILE *out, ucl_object_t *obj)
const auto *elt = ucl_object_lookup(obj, "version");
if (elt != nullptr) {
- fmt::print(out, "Rspamd version: %s\n", ucl_object_tostring(
+ fmt::print(out, "Rspamd version: {}\n", ucl_object_tostring(
elt));
}
@@ -1261,8 +1261,8 @@ rspamc_uptime_output(FILE *out, ucl_object_t *obj)
}
/* If uptime is less than 1 minute print only seconds */
else if (seconds / 60 == 0) {
- fmt::print("{} second%s\n", seconds,
- (gint) seconds > 1 ? "s" : "");
+ fmt::print("{} second{}\n", seconds,
+ seconds > 1 ? "s" : "");
}
/* Else print the minutes and seconds. */
else {