Skip to content

Commit

Permalink
update0912
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyd66 committed Sep 12, 2024
1 parent e68d5a3 commit b33b345
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions handler/analyzer/analyze_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ def handle_from_node(node):
handle_from_node(node)
self.stdio.print(analyze_tuples)
table_data = []
headers = ['IP', 'Tenant Name', 'Is Queue', 'Over Queue Limit Count', 'Max Queue']
headers = ['IP', 'Tenant Name', 'From_TimeStamp', 'To_TimeStamp', 'Is Queue', 'Over Queue Limit Count', 'Max Queue']
for ip, info in analyze_tuples:
row = [ip, info['tenant_name'], info['is_queue'], info['over_queue_limit'], info['max_queue']]
row = [ip, info['tenant_name'], info['from_datetime_timestamp'], info['to_datetime_timestamp'], info['is_queue'], info['over_queue_limit'], info['max_queue']]
table_data.append(row)
queue_result = tabulate(table_data, headers=headers, tablefmt="pretty")
self.stdio.print(queue_result)
Expand Down Expand Up @@ -261,6 +261,8 @@ def __handle_from_node(self, node, local_store_parent_dir):
result_dict['is_queue'] = 'no'
result_dict['over_queue_limit'] = count
result_dict['max_queue'] = max_queue_value
result_dict['from_datetime_timestamp'] = from_datetime_timestamp
result_dict['to_datetime_timestamp'] = to_datetime_timestamp
self.stdio.print(result_dict)
return result_dict

Expand Down

0 comments on commit b33b345

Please sign in to comment.