Ignore:
Timestamp:
05/29/05 20:58:08 (8 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
e26cfe0
Parents:
1d9338a
Message:
  • Fixed PROCSTATE and SERVICESTATE return state. + Added support for individual size in CheckDriveSize and CheckFileSize (size has to be specified before a drive/path)
  • Fixed performance data for drives (and possibly other places)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/CheckSystem/PDHCollector.cpp

    r1d9338a r6654022  
    5050*/ 
    5151DWORD 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  } 
    5257  PDH::PDHQuery pdh; 
    5358  pdh.addCounter(NSCModuleHelper::getSettingsString(C_SYSTEM_SECTION_TITLE, C_SYSTEM_MEM_PAGE_LIMIT, C_SYSTEM_MEM_PAGE_LIMIT_DEFAULT), &memCmtLim); 
     
    6368  } 
    6469 
    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   } 
    7070 
    7171  do { 
Note: See TracChangeset for help on using the changeset viewer.