Tab completion functional.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@357 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-03-17 01:07:54 +00:00
parent 8090d4db26
commit cefa2b584d
13 changed files with 275 additions and 17 deletions
+2 -2
View File
@@ -24,6 +24,7 @@
#include <ctime>
#include <sstream>
#include <iomanip>
#include "core/download.h"
#include "utils/timer.h"
@@ -63,10 +64,9 @@ print_hhmmss(utils::Timer t) {
return "inv_time";
std::stringstream str;
str.width(2);
str.fill('0');
str << u->tm_hour << ':' << u->tm_min << ':' << u->tm_sec;
str << std::setw(2) << u->tm_hour << ':' << std::setw(2) << u->tm_min << ':' << std::setw(2) << u->tm_sec;
return str.str();
}