Changeset 482e07e in nscp
- Timestamp:
- 06/16/12 13:11:33 (12 months ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- 796c188, 91f567f
- Parents:
- b67d231
- Files:
-
- 5 edited
-
changelog (modified) (1 diff)
-
include/pdh/query.hpp (modified) (2 diffs)
-
modules/CheckExternalScripts/commands.hpp (modified) (2 diffs)
-
version.hpp (modified) (1 diff)
-
version.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
changelog
rb67d231 r482e07e 2 2 * Process times and similar ? 3 3 * Fix configuration GUI (low priority) 4 * Fix adependonservice LanManWorkStation (old win)4 * Fix dependonservice LanManWorkStation (old win) 5 5 * Fix RtlStringFromGUID problem on NT4 6 7 2012-06-12 MickeM 8 * Improved error handling in performance counters #436 9 * Improved parsing of "legacy command lines" 6 10 7 11 2012-06-12 MickeM -
include/pdh/query.hpp
r1cc8566 r482e07e 37 37 CounterList counters_; 38 38 PDH::PDH_HQUERY hQuery_; 39 bool hasDisplayedInvalidCOunter_; 39 40 public: 40 PDHQuery() : hQuery_(NULL) {41 PDHQuery() : hQuery_(NULL), hasDisplayedInvalidCOunter_(false) { 41 42 } 42 43 virtual ~PDHQuery(void) { … … 106 107 status = (*it)->collect(); 107 108 } 108 if (status.is_error()) { 109 throw PDHException(_T("Failed to poll counter: "), status); 109 if (status.is_negative_denominator()) { 110 if (!hasDisplayedInvalidCOunter_) { 111 hasDisplayedInvalidCOunter_ = true; 112 throw PDHException(_T("Negative denominator issue (check FAQ for ways to solve this): ") + (*it)->getName(), status); 113 } 114 } else if (status.is_error()) { 115 throw PDHException(_T("Failed to poll counter: ") + (*it)->getName(), status); 110 116 } 111 117 } -
modules/CheckExternalScripts/commands.hpp
rb67d231 r482e07e 72 72 std::wstringstream ss; 73 73 ss << alias << _T("[") << alias << _T("] = ") 74 << _T("{command: ") << command 75 << _T(", arguments: ") << get_argument(); 76 if (!user.empty()) { 77 ss << _T(", user: ") << user 78 << _T(", domain: ") << domain 79 << _T(", password: ") << password; 80 } 81 ss << _T("}"); 74 << _T("{command: ") << command 75 << _T(", arguments: "); 76 bool first = true; 77 BOOST_FOREACH(const std::wstring &s, arguments) { 78 if (first) 79 first = false; 80 else 81 ss << L', '; 82 ss << s; 83 } 84 if (!user.empty()) { 85 ss << _T(", user: ") << user 86 << _T(", domain: ") << domain 87 << _T(", password: ") << password; 88 } 89 ss << _T("}"); 82 90 return ss.str(); 83 91 } … … 96 104 } 97 105 arguments.clear(); 106 std::list<std::wstring> buffer; 98 107 BOOST_FOREACH(std::wstring s, list) { 99 arguments.push_back(s); 108 std::size_t len = s.length(); 109 if (buffer.empty()) { 110 if (len > 2 && s[0] == L'\"' && s[len-1] == L'\"') { 111 buffer.push_back(s.substr(1, len-2)); 112 } else if (len > 1 && s[0] == L'\"') { 113 buffer.push_back(s); 114 } else { 115 arguments.push_back(s); 116 } 117 } else { 118 if (len > 1 && s[len-1] == L'\"') { 119 std::wstring tmp; 120 BOOST_FOREACH(const std::wstring &s2, buffer) { 121 if (tmp.empty()) { 122 tmp = s2.substr(1); 123 } else { 124 tmp += _T(" ") + s2; 125 } 126 } 127 arguments.push_back(tmp + _T(" ") + s.substr(0, len-1)); 128 buffer.clear(); 129 } else { 130 buffer.push_back(s); 131 } 132 } 133 } 134 if (!buffer.empty()) { 135 BOOST_FOREACH(const std::wstring &s, buffer) { 136 arguments.push_back(s); 137 } 100 138 } 101 139 } -
version.hpp
rb67d231 r482e07e 1 1 #ifndef VERSION_HPP 2 2 #define VERSION_HPP 3 #define PRODUCTVER 0,4,0,17 54 #define STRPRODUCTVER "0,4,0,17 5"5 #define STRPRODUCTDATE "2012-06-1 2"3 #define PRODUCTVER 0,4,0,177 4 #define STRPRODUCTVER "0,4,0,177" 5 #define STRPRODUCTDATE "2012-06-16" 6 6 #endif // VERSION_HPP -
version.txt
rb67d231 r482e07e 1 1 version=0.4.0 2 build=17 53 date=2012-06-1 22 build=177 3 date=2012-06-16
Note: See TracChangeset
for help on using the changeset viewer.








