Skip to content

Commit 547933d

Browse files
authored
Merge pull request #251 from dmur1/fix-negative-start-time-#250
show time to start as a positive time
2 parents 9b09975 + 0078680 commit 547933d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/ctftime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func CtfTime(args []string) {
110110
} else if finished {
111111
fmt.Printf(theme.ColorGray+"time since finish: "+theme.ColorReset+"%v\n", finishTime.Sub(now))
112112
} else {
113-
fmt.Printf(theme.ColorGray+"time to start: "+theme.ColorReset+"%v\n", now.Sub(startTime))
113+
fmt.Printf(theme.ColorGray+"time to start: "+theme.ColorReset+"%v\n", startTime.Sub(now))
114114
fmt.Printf(theme.ColorGray+"time to finish: "+theme.ColorReset+"%v\n", finishTime.Sub(now))
115115
}
116116
}

0 commit comments

Comments
 (0)