Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
lead time in seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis1282 committed Aug 30, 2023
1 parent b6c1e32 commit 8572002
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdk/lsf-sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -802,8 +802,8 @@ export class LSFWrapper {
const sessionTime = new Date() - annotation.loadedDate;
const submittedTime = Number(annotation.leadTime ?? 0);
const draftTime = Number(this.task.drafts[0]?.lead_time ?? 0);
const lead_time = sessionTime + submittedTime + draftTime;

const lead_time = Math.floor(sessionTime + submittedTime + draftTime / 1000);
const result = {
lead_time,
result: (draft ? annotation.versions.draft : annotation.serializeAnnotation()) ?? [],
Expand Down

0 comments on commit 8572002

Please sign in to comment.