Remove unnecessary rounding
This commit is contained in:
parent
78420f65ab
commit
34a8bdcf47
4 changed files with 4 additions and 8 deletions
|
@ -55,9 +55,7 @@ export const execAsync = async (command: string | string[]) => {
|
|||
: command;
|
||||
const startTime = Date.now();
|
||||
const result = await execAsync_(escapedCommand);
|
||||
log.debug(
|
||||
() => `${escapedCommand} (${Math.round(Date.now() - startTime)} ms)`,
|
||||
);
|
||||
log.debug(() => `${escapedCommand} (${Date.now() - startTime} ms)`);
|
||||
return result;
|
||||
};
|
||||
|
||||
|
|
|
@ -57,8 +57,8 @@ export const indexFaces = async (enteFile: EnteFile, localFile?: File) => {
|
|||
}
|
||||
|
||||
log.debug(() => {
|
||||
const ms = Math.round(Date.now() - startTime);
|
||||
const nf = mlFile.faces?.length ?? 0;
|
||||
const ms = Date.now() - startTime;
|
||||
return `Indexed ${nf} faces in file ${enteFile.id} (${ms} ms)`;
|
||||
});
|
||||
return mlFile;
|
||||
|
|
|
@ -51,9 +51,7 @@ class HEICConverter {
|
|||
const startTime = Date.now();
|
||||
const convertedHEIC =
|
||||
await worker.heicToJPEG(fileBlob);
|
||||
const ms = Math.round(
|
||||
Date.now() - startTime,
|
||||
);
|
||||
const ms = Date.now() - startTime;
|
||||
log.debug(() => `heic => jpeg (${ms} ms)`);
|
||||
clearTimeout(timeout);
|
||||
resolve(convertedHEIC);
|
||||
|
|
|
@ -82,7 +82,7 @@ const ffmpegExec = async (
|
|||
|
||||
const result = ffmpeg.FS("readFile", outputPath);
|
||||
|
||||
const ms = Math.round(Date.now() - startTime);
|
||||
const ms = Date.now() - startTime;
|
||||
log.debug(() => `[wasm] ffmpeg ${cmd.join(" ")} (${ms} ms)`);
|
||||
return result;
|
||||
} finally {
|
||||
|
|
Loading…
Add table
Reference in a new issue