From 51f6f0576cd1b924e83ba11ca6dfaa96e3b37f96 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Wed, 21 Feb 2024 09:25:54 -0500 Subject: [PATCH] Fix update_interval handling from CLI args --- src/conky.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/conky.cc b/src/conky.cc index b316b18f..8c42e1ab 100644 --- a/src/conky.cc +++ b/src/conky.cc @@ -2169,9 +2169,9 @@ void initialisation(int argc, char **argv) { break; case 'u': - state->pushinteger(dpi_scale(strtol(optarg, &conv_end, 10))); + state->pushnumber(strtod(optarg, &conv_end)); if (*conv_end != 0) { - CRIT_ERR("'%s' is a wrong update-interval", optarg); + CRIT_ERR("'%s' is an invalid update interval", optarg); } update_interval.lua_set(*state); break; @@ -2179,7 +2179,7 @@ void initialisation(int argc, char **argv) { case 'i': state->pushinteger(strtol(optarg, &conv_end, 10)); if (*conv_end != 0) { - CRIT_ERR("'%s' is a wrong number of update-times", optarg); + CRIT_ERR("'%s' is an invalid number of update times", optarg); } total_run_times.lua_set(*state); break; @@ -2187,7 +2187,7 @@ void initialisation(int argc, char **argv) { case 'x': state->pushinteger(strtol(optarg, &conv_end, 10)); if (*conv_end != 0) { - CRIT_ERR("'%s' is a wrong value for the X-position", optarg); + CRIT_ERR("'%s' is an invalid value for the X-position", optarg); } gap_x.lua_set(*state); break;