Changeset d9cdcb3 in nscp


Ignore:
Timestamp:
04/28/12 07:32:00 (14 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
fa11893
Parents:
308ae18
Message:
  • Fixed issue with check-cpu sampling interval being 10seconds and not 1/10 second.
  • Some git file transformations
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • changelog

    r308ae18 rd9cdcb3  
    44 * Fixa dependonservice LanManWorkStation (old win) 
    55 * Fix RtlStringFromGUID problem on NT4 
     6 
     72012-04-26 MickeM 
     8 * Fixed issue with check-cpu sampling interval being 10seconds and not 1/10 second. 
    69 
    7102012-04-23 MickeM 
  • modules/CheckSystem/CheckSystem.cpp

    r308ae18 rd9cdcb3  
    7171bool CheckSystem::loadModuleEx(std::wstring alias, NSCAPI::moduleLoadMode mode) { 
    7272  PDHCollector::system_counter_data *data = new PDHCollector::system_counter_data; 
    73   data->check_intervall = 100; 
     73  data->check_intervall = 1; 
    7474  try { 
    7575    typedef std::map<std::wstring,std::wstring> counter_map_type; 
     
    9999      _T("DEFAULT LENGTH"), _T("Used to define the default intervall for range buffer checks (ie. CPU).")) 
    100100 
    101       (_T("default intervall"), sh::uint_key(&data->check_intervall, 10), 
    102       _T("DEFAULT INTERVALL"), _T("Used to define the default intervall for range buffer checks (ie. CPU).")) 
     101      (_T("default intervall"), sh::uint_key(&data->check_intervall, 1), 
     102      _T("DEFAULT INTERVALL"), _T("Used to define the default intervall for range buffer checks (ie. CPU)."), true) 
    103103 
    104104      ; 
  • modules/CheckSystem/PDHCollector.cpp

    r8013c0c rd9cdcb3  
    227227  } 
    228228  try { 
    229     unsigned int mseconds = strEx::stoui_as_time(time, frequency); 
     229    unsigned int mseconds = strEx::stoui_as_time(time); 
    230230    return static_cast<int>(get_avg_value(PDH_SYSTEM_KEY_CPU, mseconds/frequency)); 
    231231  } catch (PDHCollectors::PDHException &e) { 
Note: See TracChangeset for help on using the changeset viewer.