MCPcopy Create free account
hub / github.com/apple/foundationdb / getDateInfoString

Function getDateInfoString

fdbcli/StatusCommand.actor.cpp:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104std::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
117std::string getProcessAddressByServerID(StatusObjectReader processesMap, std::string serverID) {
118 if (serverID == "")

Callers 1

printStatusFunction · 0.85

Calls 4

localtimeFunction · 0.85
hasMethod · 0.80
get_int64Method · 0.80
lastMethod · 0.80

Tested by

no test coverage detected