Skip to content

Commit c77a543

Browse files
committed
fix longlink rebuild message print error
1 parent 8aebe51 commit c77a543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mars/stn/src/longlink.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ void LongLink::__Run() {
347347
}
348348

349349
uint64_t cur_time = gettickcount();
350-
xinfo_function(TSF"LongLink Rebuild span:%_, net:%_", cur_time - conn_profile_.disconn_time, getNetInfo());
350+
xinfo_function(TSF"LongLink Rebuild span:%_, net:%_", conn_profile_.disconn_time != 0 ? cur_time - conn_profile_.disconn_time : 0, getNetInfo());
351351

352352
ConnectProfile conn_profile;
353353
conn_profile.start_time = cur_time;

0 commit comments

Comments
 (0)