WebParser: Cosmetics

This commit is contained in:
Brian Ferguson 2013-07-10 17:10:11 -06:00
parent f9ab4ee414
commit 19c6c58271

View File

@ -801,11 +801,10 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue)
measure->stringIndex2 = RmReadInt(rm, L"StringIndex2", 0); measure->stringIndex2 = RmReadInt(rm, L"StringIndex2", 0);
measure->decodeCharacterReference = RmReadInt(rm, L"DecodeCharacterReference", 0); measure->decodeCharacterReference = RmReadInt(rm, L"DecodeCharacterReference", 0);
measure->updateRate = RmReadInt(rm, L"UpdateRate", 600); measure->updateRate = RmReadInt(rm, L"UpdateRate", 600);
measure->download = 1 == RmReadInt(rm, L"Download", 0); measure->forceReload = 0!=RmReadInt(rm, L"ForceReload", 0);
measure->forceReload = 1 == RmReadInt(rm, L"ForceReload", 0);
measure->debug = RmReadInt(rm, L"Debug", 0);
measure->codepage = RmReadInt(rm, L"CodePage", 0); measure->codepage = RmReadInt(rm, L"CodePage", 0);
measure->download = 0!=RmReadInt(rm, L"Download", 0);
if (measure->download) if (measure->download)
{ {
measure->downloadFolder = RmPathToAbsolute(rm, L"DownloadFile\\"); measure->downloadFolder = RmPathToAbsolute(rm, L"DownloadFile\\");
@ -816,6 +815,8 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue)
measure->downloadFile.clear(); measure->downloadFile.clear();
} }
measure->debug = RmReadInt(rm, L"Debug", 0);
if (measure->debug == 2) if (measure->debug == 2)
{ {
measure->debugFileLocation = RmReadPath(rm, L"Debug2File", L"WebParserDump.txt"); measure->debugFileLocation = RmReadPath(rm, L"Debug2File", L"WebParserDump.txt");