time should be pretty printed unformated. no need to pretty print seq numbers

This commit is contained in:
Jacob Parker 2011-11-10 18:39:56 -05:00
parent 6af0b58bd6
commit b8b0261606
1 changed files with 6 additions and 6 deletions

View File

@ -88,13 +88,13 @@ std::vector<std::string> Log::toString()
ans.reserve(entries.size());
std::list<LogEntry>::iterator it;
for(it = entries.begin(); it != entries.end(); it++) {
char* time = new char[64];
struct tm* tms = localtime((time_t*)&it->ts);
strftime(time, 64, "%c", tms);
std::string out = (std::string)time + "\t"
+ ThingToString<uint64_t> (it->serial) + "\t"
//char* time = new char[64];
//struct tm* tms = localtime((time_t*)&it->ts);
//strftime(time, 64, "%c", tms);
std::string out = ThingToString<uint64_t>(it->ts) + "\t"
//+ ThingToString<uint64_t> (it->serial) + "\t"
+ logTypeToString(it->type) + "\t";
delete[] time;
//delete[] time;
switch(it->type) {
case ET_TRANS:
out += ns.get_name(it->Transaction.uid) + "\t"