]> git.stg.codes - stg.git/blobdiff - libs/pinger/pinger.cpp
Make time-sensitive tests in local machine time.
[stg.git] / libs / pinger / pinger.cpp
index 1689e29403b89c6dd22a0d88fb5dd491d0ec055e..07415812a6bbf61f831b9f797cb16fbad8573f9f 100644 (file)
@@ -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;
     }