fixed proper formatting of announce count down in client_test

This commit is contained in:
Arvid Norberg
2007-04-14 21:03:14 +00:00
parent ecb20f97fd
commit f16e419abd

View File

@@ -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";
}