Skip to content

Commit

Permalink
[Improve] The start time may be null.#4140 (#4141)
Browse files Browse the repository at this point in the history
  • Loading branch information
Forus0322 authored Dec 4, 2024
1 parent 54c725a commit dade726
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public AlertTemplateBuilder endTime(Date endTime) {

public AlertTemplateBuilder duration(Date start, Date end) {
long duration;
if (start == null && end == null) {
if (start == null) {
duration = 0L;
} else if (end == null) {
duration = System.currentTimeMillis() - start.getTime();
Expand Down

0 comments on commit dade726

Please sign in to comment.