feat: Fix typos in MetricFetcher of sentinel-dashboard (#2324)

This commit is contained in:
brotherlu-xcq 2021-08-14 12:19:40 +08:00 committed by GitHub
parent 436a88562e
commit 20a0e4d7f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ public class MetricFetcher {
lastFetchMs = lastFetchMs / 1000 * 1000; lastFetchMs = lastFetchMs / 1000 * 1000;
long endTime = lastFetchMs + FETCH_INTERVAL_SECOND * 1000; long endTime = lastFetchMs + FETCH_INTERVAL_SECOND * 1000;
if (endTime > now - 1000 * 2) { if (endTime > now - 1000 * 2) {
// to near // too near
return; return;
} }
// update last_fetch in advance. // update last_fetch in advance.