mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 18:25:54 -07:00
3 decimal places
This commit is contained in:
parent
84435cf43f
commit
92eab29bd8
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
newData = getData(file);
|
newData = getData(file);
|
||||||
oldData = getData(otherArguments.originalLibraryFile);
|
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}% `
|
const dataText = `New file has duration ${newData} s which is ${ratio}% `
|
||||||
+ `of original file duration: ${oldData} s`;
|
+ `of original file duration: ${oldData} s`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue