diff --git a/examples/client_test.cpp b/examples/client_test.cpp index ea2e92389..335f923ee 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -919,8 +919,10 @@ int main(int ac, char* av[]) if (s.state != torrent_status::seeding) { boost::posix_time::time_duration t = s.next_announce; - out << " next announce: " << esc("37") << - t.hours() << ":" << t.minutes() << ":" << t.seconds() << esc("0") << " "; + out << " next announce: " << esc("37") + << std::setw(2) << std::setfill('0') << t.hours() << ":" + << std::setw(2) << std::setfill('0') << t.minutes() << ":" + << std::setw(2) << std::setfill('0') << t.seconds() << esc("0") << " "; out << "tracker: " << s.current_tracker << "\n"; }