3 decimal places

make-only-subtitle-default
Enigma 4 years ago committed by GitHub
parent 84435cf43f
commit 92eab29bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,7 +65,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
newData = getData(file);
oldData = getData(otherArguments.originalLibraryFile);
const ratio = ((newData / oldData) * 100.0).toFixed(2);
const ratio = ((newData / oldData) * 100.0).toFixed(3);
const dataText = `New file has duration ${newData} s which is ${ratio}% `
+ `of original file duration: ${oldData} s`;

Loading…
Cancel
Save