From: Evan Felix Date: Thu, 9 May 2013 22:00:36 +0000 (-0700) Subject: Fix input parameter X-Git-Tag: collectd-5.4.0~42^2~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3c5f7f2caba244a36284073091cbd5d4ae8d87f7;p=collectd.git Fix input parameter --- diff --git a/src/mic.c b/src/mic.c index eec55f1b..0f78f292 100644 --- a/src/mic.c +++ b/src/mic.c @@ -33,8 +33,8 @@ #define MAX_CORES 256 static MicDeviceOnSystem mics[MAX_MICS]; -static U32 num_mics = 0; -static HANDLE mic_handle=NULL; +static U32 num_mics = MAX_MICS; +static HANDLE mic_handle = NULL; #define NUM_THERMS 7 static const int therms[NUM_THERMS] = {eMicThermalDie,eMicThermalDevMem,eMicThermalFin,eMicThermalFout,eMicThermalVccp,eMicThermalVddg,eMicThermalVddq}; static const char *therm_names[NUM_THERMS] = {"die","devmem","fin","fout","vccp","vddg","vddq"};