Skip to content

Commit dade726

Browse files
authored
[Improve] The start time may be null.#4140 (#4141)
1 parent 54c725a commit dade726

File tree

1 file changed

+1
-1
lines changed
  • streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/bean

1 file changed

+1
-1
lines changed

streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/bean/AlertTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public AlertTemplateBuilder endTime(Date endTime) {
7979

8080
public AlertTemplateBuilder duration(Date start, Date end) {
8181
long duration;
82-
if (start == null && end == null) {
82+
if (start == null) {
8383
duration = 0L;
8484
} else if (end == null) {
8585
duration = System.currentTimeMillis() - start.getTime();

0 commit comments

Comments
 (0)