Display the uptime in a more readable way

This adds CString::ToTimeStr() which converts a number of seconds into
a human readable time string.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1107 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-06-27 09:55:55 +00:00
parent 9e6d05a0bd
commit b2512e55ea
3 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ CString CZNC::GetTag(bool bIncludeVersion) {
CString CZNC::GetUptime() {
time_t now = time(NULL);
return CString(now - TimeStarted()) + " seconds";
return CString::ToTimeStr(now - TimeStarted());
}
bool CZNC::OnBoot() {