X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..1c324d5b2380a68f209e65969079677dbaf1c511:/libs/pinger/pinger.cpp?ds=sidebyside 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; }