metrics: ingest_dashboard(): replace max_revision duplicate variable nonsense
Replaces commit 437f46a4cb156d44baf9f2c18a4d702240936836.
This commit is contained in:
parent
adaeac7714
commit
ed23a53196
@ -483,9 +483,7 @@ def ingest_dashboard(api):
|
|||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
points = []
|
points = []
|
||||||
max_revision = 0
|
|
||||||
for made, revision in sorted(index.items()):
|
for made, revision in sorted(index.items()):
|
||||||
max_revision = revision
|
|
||||||
if not past:
|
if not past:
|
||||||
if revision == revision_last:
|
if revision == revision_last:
|
||||||
past = True
|
past = True
|
||||||
@ -523,7 +521,7 @@ def ingest_dashboard(api):
|
|||||||
client.write_points(points, 's')
|
client.write_points(points, 's')
|
||||||
count += len(points)
|
count += len(points)
|
||||||
|
|
||||||
print('last revision processed: {}'.format(max_revision))
|
print('last revision processed: {}'.format(revision if len(index) else 'none'))
|
||||||
|
|
||||||
return count
|
return count
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user