Code

Fix input parameter
authorEvan Felix <e@pnnl.gov>
Thu, 9 May 2013 22:00:36 +0000 (15:00 -0700)
committerFlorian Forster <octo@collectd.org>
Sat, 11 May 2013 07:15:39 +0000 (09:15 +0200)
src/mic.c

index eec55f1be2dd9b6c775d2937458c51734f219a32..0f78f292518ec2a6794a96112e5750bc0618ac7b 100644 (file)
--- 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"};