| 102 | } |
| 103 | |
| 104 | std::string getDateInfoString(StatusObjectReader statusObj, std::string key) { |
| 105 | time_t curTime; |
| 106 | if (!statusObj.has(key)) { |
| 107 | return ""; |
| 108 | } |
| 109 | curTime = statusObj.last().get_int64(); |
| 110 | char buffer[128]; |
| 111 | struct tm* timeinfo; |
| 112 | timeinfo = localtime(&curTime); |
| 113 | strftime(buffer, 128, "%m/%d/%y %H:%M:%S", timeinfo); |
| 114 | return std::string(buffer); |
| 115 | } |
| 116 | |
| 117 | std::string getProcessAddressByServerID(StatusObjectReader processesMap, std::string serverID) { |
| 118 | if (serverID == "") |
no test coverage detected