Skip to content

Commit

Permalink
Merge pull request OpenGene#273 from nh13/patch-1
Browse files Browse the repository at this point in the history
Pad loginfo time with a zero
  • Loading branch information
sfchen authored Jul 21, 2020
2 parents 39ae164 + 5d78caf commit 911533d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ inline void loginfo(const string s){
logmtx.lock();
time_t tt = time(NULL);
tm* t= localtime(&tt);
cerr<<"["<<t->tm_hour<<":"<<t->tm_min<<":"<<t->tm_sec<<"] "<<s<<endl;
fprintf(stderr, "[%02d:%02d:%02d]\n", t->tm_hour, t->tm_min, t->tm_sec);
logmtx.unlock();
}

Expand Down

0 comments on commit 911533d

Please sign in to comment.