cpu: remove legacy assignment to undefiend variable
authorMarc Fournier <marc.fournier@camptocamp.com>
Mon, 1 Dec 2014 08:07:30 +0000 (09:07 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Mon, 1 Dec 2014 08:07:30 +0000 (09:07 +0100)
This finishes up the cleanup done by f7100301fa. It also fixes #828
(build error on Mac OS).

Many thanks to @njh for pointing that out !

src/cpu.c

index 1c4e5f6..6753397 100644 (file)
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -156,8 +156,6 @@ 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 (plugin_get_interval ());
 /* #endif PROCESSOR_CPU_LOAD_INFO */
 
 #elif defined(HAVE_LIBKSTAT)