This commit is contained in:
spx 2012-02-09 04:14:41 +00:00
parent 82e8c6e307
commit ec2b19f0dc

View File

@ -60,9 +60,9 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue)
MeasureData* measure = (MeasureData*)data; MeasureData* measure = (MeasureData*)data;
LPCWSTR value = RmReadString(rm, L"CoreTempType", L"Temperature"); LPCWSTR value = RmReadString(rm, L"CoreTempType", L"Temperature");
eMeasureType type = convertStringToMeasureType(value); measure->type = convertStringToMeasureType(value);
if (type == MeasureTemperature || type == MeasureTjMax || type == MeasureLoad) if (measure->type == MeasureTemperature || measure->type == MeasureTjMax || measure->type == MeasureLoad)
{ {
measure->index = RmReadInt(rm, L"CoreTempIndex", 0); measure->index = RmReadInt(rm, L"CoreTempIndex", 0);
} }