X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcpu.c;h=2247d5fdc7ad377acebfb4b26ef883d473d5de5c;hb=f7e81e5920d6e51cd6d616aee1123a02b7dc183f;hp=12071a2ca8bae25cf86f25782a682ad1bf898846;hpb=0eff156c7816507fa1865b76e948574dd320fae0;p=collectd.git diff --git a/src/cpu.c b/src/cpu.c index 12071a2c..2247d5fd 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -163,7 +163,7 @@ static int init (void) DEBUG ("host_processors returned %i %s", (int) cpu_list_len, cpu_list_len == 1 ? "processor" : "processors"); INFO ("cpu plugin: Found %i processor%s.", (int) cpu_list_len, cpu_list_len == 1 ? "" : "s"); - cpu_temp_retry_max = 86400 / CDTIME_T_TO_TIME_T (interval_g); + cpu_temp_retry_max = 86400 / CDTIME_T_TO_TIME_T (plugin_get_interval ()); /* #endif PROCESSOR_CPU_LOAD_INFO */ #elif defined(HAVE_LIBKSTAT) @@ -344,8 +344,6 @@ static int cpu_read (void) cpu_temp_retry_counter = 0; cpu_temp_retry_step = 1; - - DEBUG ("cpu_temp = %i", (int) cpu_temp); #endif /* PROCESSOR_TEMPERATURE */ } /* #endif PROCESSOR_CPU_LOAD_INFO */