X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..c02633d77cb05a5deb05440d77b12ccc5bc19b85:/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; }