Convert queue size and count to string in monitor (#319)

This commit is contained in:
Sophile
2026-03-28 03:30:35 +05:30
committed by GitHub
parent 01df35c923
commit 1abdc5b653

View File

@@ -173,7 +173,7 @@ def monitor(run_once=False, broker=None):
)
print(
term.move(i, 3 * col_width)
+ term.white_on_cyan(term.center(queue_size, width=col_width))
+ term.white_on_cyan(term.center(str(queue_size), width=col_width))
)
print(
term.move(i, 4 * col_width)
@@ -182,7 +182,7 @@ def monitor(run_once=False, broker=None):
print(
term.move(i, 5 * col_width)
+ term.white_on_cyan(
term.center(models.Success.objects.count(), width=col_width)
term.center(str(models.Success.objects.count()), width=col_width)
)
)
print(
@@ -192,7 +192,7 @@ def monitor(run_once=False, broker=None):
print(
term.move(i, 7 * col_width)
+ term.white_on_cyan(
term.center(models.Failure.objects.count(), width=col_width)
term.center(str(models.Failure.objects.count()), width=col_width)
)
)
# for testing