Changeset a1e1922 in nscp
- Timestamp:
- 02/23/05 08:25:55 (8 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- 36c340d
- Parents:
- db70efa
- Files:
-
- 6 added
- 6 edited
-
include/strEx.h (modified) (1 diff)
-
modules/CheckDisk/CheckDisk.cpp (added)
-
modules/CheckDisk/CheckDisk.def (added)
-
modules/CheckDisk/CheckDisk.h (added)
-
modules/CheckDisk/CheckDisk.vcproj (added)
-
modules/CheckDisk/stdafx.cpp (added)
-
modules/CheckDisk/stdafx.h (added)
-
modules/CheckEventLog/stdafx.h (modified) (1 diff)
-
modules/NSClientCompat/NSClientCompat.vcproj (modified) (2 diffs)
-
modules/NSClientCompat/PDHCollector.cpp (modified) (1 diff)
-
modules/NSClientCompat/PDHCollector.h (modified) (1 diff)
-
modules/SysTray/TrayIcon.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
include/strEx.h
ra0528c4 ra1e1922 22 22 return ss.str(); 23 23 } 24 inline stoi(std::string s) {24 inline int stoi(std::string s) { 25 25 return atoi(s.c_str()); 26 } 27 inline long long stoi64_as_BKMG(std::string s) { 28 std::string::size_type p = s.find_first_of("BMKG"); 29 if (p == std::string::npos) 30 return _atoi64(s.c_str()); 31 else if (s[p] == 'B') 32 return _atoi64(s.c_str()); 33 else if (s[p] == 'K') 34 return _atoi64(s.c_str())*1024; 35 else if (s[p] == 'M') 36 return _atoi64(s.c_str())*1024*1024; 37 else if (s[p] == 'G') 38 return _atoi64(s.c_str())*1024*1024*1024; 39 else 40 return _atoi64(s.c_str()); 41 } 42 inline std::string itos_as_BKMG(long long i) { 43 if (i > (1024*1024*1024)) 44 return itos(i/(1024*1024*1024))+"G (" + itos(i) + "B)"; 45 if (i > (1024*1024)) 46 return itos(i/(1024*1024))+"M (" + itos(i) + "B)"; 47 if (i > (1024)) 48 return itos(i/(1024))+"K (" + itos(i) + "B)"; 49 return itos(i>>24)+"B"; 26 50 } 27 51 inline std::pair<std::string,std::string> split(std::string str, std::string key) { -
modules/CheckEventLog/stdafx.h
ra0528c4 ra1e1922 13 13 #include <string> 14 14 15 15 16 #include <NSCAPI.h> 16 17 #include <NSCHelper.h> -
modules/NSClientCompat/NSClientCompat.vcproj
ra0528c4 ra1e1922 163 163 </File> 164 164 <File 165 RelativePath="..\include\ModuleHelper.h">166 </File>167 <File168 165 RelativePath="..\..\include\NSCHelper.h"> 169 166 </File> … … 178 175 </File> 179 176 <File 180 RelativePath="..\include\PDHCollectors.h"> 181 </File> 182 <File 183 RelativePath="..\include\PDHCounter.h"> 177 RelativePath="..\..\include\PDHCollectors.h"> 184 178 </File> 185 179 <File -
modules/NSClientCompat/PDHCollector.cpp
ra0528c4 ra1e1922 20 20 #include "stdafx.h" 21 21 #include "PDHCollector.h" 22 23 24 PDHCollector::PDHCollector() : cpu(BACK_INTERVAL*60/CHECK_INTERVAL), running_(true) { 25 } 26 PDHCollector::~PDHCollector() 27 { 28 } 22 29 23 30 /** -
modules/NSClientCompat/PDHCollector.h
ra0528c4 ra1e1922 35 35 36 36 public: 37 PDHCollector() : cpu(BACK_INTERVAL*60/CHECK_INTERVAL), running_(true) {38 }37 PDHCollector(); 38 virtual ~PDHCollector(); 39 39 DWORD threadProc(LPVOID lpParameter); 40 40 void exitThread(void); -
modules/SysTray/TrayIcon.cpp
r3baaa4d ra1e1922 116 116 } 117 117 } 118 removeIcon(); 118 119 119 120 ::DestroyWindow(ghDlgWnd);
Note: See TracChangeset
for help on using the changeset viewer.








