diff --git a/templates/uptime.cpp b/templates/uptime.cpp index 63a4e1a..cf4f001 100755 --- a/templates/uptime.cpp +++ b/templates/uptime.cpp @@ -44,9 +44,9 @@ char buf[50]; time_t hour = min / 60; if( hour == 0 && min == 0 ) - sprintf(buf, "%d:%02d:%02d", hour, min, sec); + sprintf(buf, "%d:%02d:%02d", (int)hour, (int)min, (int)sec); else - sprintf(buf, "%d:%02d", hour, min); + sprintf(buf, "%d:%02d", (int)hour, (int)min); i.out << buf; }