Changeset 6654022 in nscp for modules/CheckSystem/PDHCollector.cpp
- Timestamp:
- 05/29/05 20:58:08 (8 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- e26cfe0
- Parents:
- 1d9338a
- File:
-
- 1 edited
-
modules/CheckSystem/PDHCollector.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/CheckSystem/PDHCollector.cpp
r1d9338a r6654022 50 50 */ 51 51 DWORD PDHCollector::threadProc(LPVOID lpParameter) { 52 hStopEvent_ = CreateEvent(NULL, TRUE, FALSE, NULL); 53 if (!hStopEvent_) { 54 NSC_LOG_ERROR_STD("Create StopEvent failed: " + strEx::itos(GetLastError())); 55 return 0; 56 } 52 57 PDH::PDHQuery pdh; 53 58 pdh.addCounter(NSCModuleHelper::getSettingsString(C_SYSTEM_SECTION_TITLE, C_SYSTEM_MEM_PAGE_LIMIT, C_SYSTEM_MEM_PAGE_LIMIT_DEFAULT), &memCmtLim); … … 63 68 } 64 69 65 hStopEvent_ = CreateEvent(NULL, TRUE, FALSE, NULL);66 if (!hStopEvent_) {67 NSC_LOG_ERROR_STD("Create StopEvent failed: " + strEx::itos(GetLastError()));68 return 0;69 }70 70 71 71 do {
Note: See TracChangeset
for help on using the changeset viewer.








