refactor(downloads): the GIF span helper stays inside lib/gif
This commit is contained in:
@@ -59,8 +59,7 @@ export const atMs = (s: number) => Math.round(s * 1000) / 1000;
|
||||
/** A range's length in whole milliseconds, between its ends as the request sends them: the length
|
||||
* the server judges (gif.too_long), so a range the panel allows is never refused for its length,
|
||||
* and none it refuses would have been made. */
|
||||
export const spanMs = (start: number, end: number) =>
|
||||
Math.round(end * 1000) - Math.round(start * 1000);
|
||||
const spanMs = (start: number, end: number) => Math.round(end * 1000) - Math.round(start * 1000);
|
||||
|
||||
/** A range's length to show beside a verdict: over the cap it is rounded up to the tenth, so a
|
||||
* refused range never reads as one the cap allows ("0:30.0" for 30.03 s). */
|
||||
|
||||
Reference in New Issue
Block a user