changed: upload function
select file type by the extension
param: multi
fixed: uptime function
it showed incorrect uptime time (minuts were badly calculated)
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@575 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -44,9 +44,9 @@ char buf[50];
|
||||
time_t hour = min / 60;
|
||||
|
||||
if( hour == 0 && min == 0 )
|
||||
sprintf(buf, "%d:%02d:%02d", (int)hour, (int)min, (int)sec);
|
||||
sprintf(buf, "%d:%02d:%02d", (int)hour, (int)(min%60), (int)(sec%60));
|
||||
else
|
||||
sprintf(buf, "%d:%02d", (int)hour, (int)min);
|
||||
sprintf(buf, "%d:%02d", (int)hour, (int)(min%60));
|
||||
|
||||
i.out << buf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user