mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02: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) => {
|
||||
if (!seconds) return 0;
|
||||
return seconds * 1000;
|
||||
return Math.floor(seconds * 1000);
|
||||
};
|
||||
|
||||
export const msToSeconds = (ms?: number | undefined) => {
|
||||
|
||||
Reference in New Issue
Block a user