Changeset 8fcc179 in nscp for trunk/modules/CheckSystem/PDHCollector.cpp
- Timestamp:
- 10/26/06 07:03:39 (7 years ago)
- Children:
- e47106e
- Parents:
- 580389c3
- File:
-
- 1 edited
-
trunk/modules/CheckSystem/PDHCollector.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/CheckSystem/PDHCollector.cpp
r8b89aba r8fcc179 120 120 121 121 DWORD waitStatus = 0; 122 bool first = true; 122 123 do { 123 124 MutexLock mutex(mutexHandler); … … 128 129 pdh.gatherData(); 129 130 } catch (const PDH::PDHException &e) { 130 NSC_LOG_ERROR_STD("Failed to query performance counters: " + e.getError()); 131 if (first) { // If this is the first run an error will be thrown since the data is not yet avalible 132 // This is "ok" but perhaps another solution would be better, but this works :) 133 first = false; 134 } else { 135 NSC_LOG_ERROR_STD("Failed to query performance counters: " + e.getError()); 136 } 131 137 } 132 138 }
Note: See TracChangeset
for help on using the changeset viewer.








