1
0
Fork 0
forked from len0rd/rockbox

long policy

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5932 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jean-Philippe Bernardy 2005-02-12 12:40:35 +00:00
parent 8758713f84
commit 6e2a8a004d

View file

@ -237,14 +237,15 @@ bool wps_load(const char* file, bool display)
* buf_size - size of buffer.
* time - time to format, in milliseconds.
*/
static void format_time(char* buf, int buf_size, int time)
static void format_time(char* buf, int buf_size, long time)
{
if ( time < 3600000 ) {
snprintf(buf, buf_size, "%d:%02d",
time % 3600000 / 60000, time % 60000 / 1000);
(int) (time % 3600000 / 60000), (int) (time % 60000 / 1000));
} else {
snprintf(buf, buf_size, "%d:%02d:%02d",
time / 3600000, time % 3600000 / 60000, time % 60000 / 1000);
(int) (time / 3600000), (int) (time % 3600000 / 60000),
(int) (time % 60000 / 1000));
}
}