From: Eero Tamminen Date: Mon, 27 Nov 2023 13:48:48 +0000 (+0200) Subject: gpu_sysman: add unit (s) to interval settings output X-Git-Tag: 6.0.0-rc0~43^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63059f6191eb5e2abbad7def4ecadbcd2decd1f2;p=thirdparty%2Fcollectd.git gpu_sysman: add unit (s) to interval settings output Signed-off-by: Eero Tamminen --- diff --git a/src/gpu_sysman.c b/src/gpu_sysman.c index dc9a43df0..fd1dbea2b 100644 --- a/src/gpu_sysman.c +++ b/src/gpu_sysman.c @@ -308,15 +308,16 @@ static int gpu_config_check(void) { } if (config.gpuinfo) { - double interval = CDTIME_T_TO_DOUBLE(plugin_get_interval()); INFO("\nPlugin settings for '" PLUGIN_NAME "':"); INFO("- " KEY_SAMPLES ": %d", config.samples); + + double interval = CDTIME_T_TO_DOUBLE(plugin_get_interval()); if (config.samples > 1) { - INFO("- internal sampling interval: %.2f", interval); - INFO("- query / aggregation submit interval: %.2f", + INFO("- internal sampling interval: %.2fs", interval); + INFO("- query / aggregation submit interval: %.2fs", config.samples * interval); } else { - INFO("- query / submit interval: %.2f", interval); + INFO("- query / submit interval: %.2fs", interval); } unsigned i;