Commit 9264ddac authored by conrad's avatar conrad

get rid of time printing kludge (backported from libannodex tools, originally

patched by benno)


git-svn-id: http://svn.annodex.net/liboggz/trunk@2097 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent 7f663805
......@@ -310,12 +310,7 @@ ot_fprint_time (FILE * stream, double seconds)
min = (int) ((seconds - ((double)hrs * 3600.0)) / 60.0);
sec = seconds - ((double)hrs * 3600.0)- ((double)min * 60.0);
/* XXX: %02.3f workaround */
if (sec < 10.0) {
return fprintf (stream, "%s%02d:%02d:0%2.3f", sign, hrs, min, sec);
} else {
return fprintf (stream, "%s%02d:%02d:%02.3f", sign, hrs, min, sec);
}
return fprintf (stream, "%s%02d:%02d:%06.3f", sign, hrs, min, sec);
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment