mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-15 08:52:59 +01:00
Fixed inproper conversion of secondsToMs
This commit is contained in:
@@ -93,7 +93,7 @@ export const ticksToMs = (ticks?: number | undefined) => {
|
|||||||
|
|
||||||
export const secondsToMs = (seconds?: number | undefined) => {
|
export const secondsToMs = (seconds?: number | undefined) => {
|
||||||
if (!seconds) return 0;
|
if (!seconds) return 0;
|
||||||
return seconds * 1000;
|
return Math.floor(seconds * 1000);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const msToSeconds = (ms?: number | undefined) => {
|
export const msToSeconds = (ms?: number | undefined) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user