Update libs/basic/utils.js

video-slicer-reencoder
Katie Roberts 2022-09-11 22:59:28 +00:00
parent 91503ff9c5
commit ee5a1aee1c
1 changed files with 4 additions and 0 deletions

View File

@ -222,6 +222,9 @@ module.exports = (processCwd,config) => {
return s;
}
function roundNearest5(num) {
return Math.round(num / 5) * 5;
}
return {
parseJSON: parseJSON,
stringJSON: stringJSON,
@ -242,5 +245,6 @@ module.exports = (processCwd,config) => {
asyncSetTimeout: asyncSetTimeout,
copyFile: copyFile,
hmsToSeconds,
roundNearest5,
}
}