mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-19 02:34:17 +01:00
feat: Expo 54 (new arch) support + new in-house download module (#1174)
Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com> Co-authored-by: sarendsen <coding-mosses0z@icloud.com> Co-authored-by: Lance Chant <13349722+lancechant@users.noreply.github.com> Co-authored-by: Gauvain <68083474+Gauvino@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
154788cf91
commit
485dc6eeac
@@ -72,7 +72,7 @@ export const formatTimeString = (
|
||||
|
||||
export const secondsToTicks = (seconds?: number | undefined) => {
|
||||
if (!seconds) return 0;
|
||||
return seconds * 10000000;
|
||||
return Math.floor(seconds * 10000000);
|
||||
};
|
||||
|
||||
export const ticksToSeconds = (ticks?: number | undefined) => {
|
||||
@@ -82,7 +82,7 @@ export const ticksToSeconds = (ticks?: number | undefined) => {
|
||||
|
||||
export const msToTicks = (ms?: number | undefined) => {
|
||||
if (!ms) return 0;
|
||||
return ms * 10000;
|
||||
return Math.floor(ms * 10000);
|
||||
};
|
||||
|
||||
export const ticksToMs = (ticks?: number | undefined) => {
|
||||
|
||||
Reference in New Issue
Block a user