Skip to content

Commit c928b46

Browse files
authored
fix wrong minute elapsed of timer.
fix wrong minute elapsed of timer.
2 parents 69dd8ec + 853cd71 commit c928b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/shuzijun/leetcode/plugin/timer/TimerBarWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void actionPerformed(ActionEvent e) {
5555
});
5656

5757
private String time() {
58-
return String.format("[%s]%02d:%02d:%02d", name, second / 60 / 60, second / 60, second % 60);
58+
return String.format("[%s]%02d:%02d:%02d", name, second / 60 / 60, second / 60 % 60, second % 60);
5959
}
6060

6161
@Override

0 commit comments

Comments
 (0)