Update TraceSegmentServiceClient.java

Upstream log can't output correctly.
This commit is contained in:
吴晟 Wu Sheng 2017-09-29 14:48:34 +08:00 committed by IluckySi
parent 8244256a96
commit 4ca612f65e
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ public class TraceSegmentServiceClient implements BootService, IConsumer<TraceSe
private void printUplinkStatus() {
long currentTimeMillis = System.currentTimeMillis();
if (lastLogTime - currentTimeMillis > 30 * 1000) {
if (currentTimeMillis - lastLogTime > 30 * 1000) {
lastLogTime = currentTimeMillis;
if (segmentUplinkedCounter > 0) {
logger.debug("{} trace segments have been sent to collector.", segmentUplinkedCounter);