Skip to content

Commit

Permalink
Update TreeValProject.groovy
Browse files Browse the repository at this point in the history
Adding the Duration import and .toSeconds()
  • Loading branch information
DLBPointon authored Sep 15, 2023
1 parent 598de78 commit e9dd94d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/TreeValProject.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import java.time.OffsetDateTime
import java.time.OffsetDateTime;
import java.time.Duration;

class TreeValProject {
//
Expand All @@ -15,7 +16,7 @@ class TreeValProject {
input_data['version'] = NfcoreTemplate.version( workflow )
input_data['runName'] = workflow.runName
input_data['session_id'] = workflow.sessionId
input_data['duration'] = Duration.between( workflow.start, date_completed )
input_data['duration'] = Duration.between( workflow.start, date_completed ).toSeconds()
input_data['DateStarted'] = workflow.start
input_data['DateCompleted'] = date_completed
input_data['entry'] = params.entry
Expand Down

0 comments on commit e9dd94d

Please sign in to comment.