X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..f4333737c7e347efe9258ccf85c1237e03be619c:/libs/pinger/pinger.cpp diff --git a/libs/pinger/pinger.cpp b/libs/pinger/pinger.cpp index 1689e294..07415812 100644 --- a/libs/pinger/pinger.cpp +++ b/libs/pinger/pinger.cpp @@ -174,8 +174,7 @@ while (iter != pingIP.end()) { uint32_t ip = iter->first; time_t t = iter->second; - std::string s; - x2str(t, s); + std::string s = std::to_string(t); printf("ip = %s, time = %9s\n", inet_ntostring(ip).c_str(), s.c_str()); ++iter; }