Skip to content

Commit

Permalink
update09051530
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyd66 committed Sep 5, 2024
1 parent 3116879 commit fa1ced8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
10 changes: 5 additions & 5 deletions diag_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,11 +679,11 @@ def init(self, cmd, args):
return self

def _do_command(self, obdiag):
offline_args_sign = '--files'
if self.args and (offline_args_sign in self.args):
return obdiag.analyze_fuction('analyze_log_offline', self.opts)
else:
return obdiag.analyze_fuction('analyze_log', self.opts)
# offline_args_sign = '--files'
# if self.args and (offline_args_sign in self.args):
# return obdiag.analyze_fuction('analyze_log_offline', self.opts)
# else:
return obdiag.analyze_fuction('analyze_queue', self.opts)


class ObdiagAnalyzeFltTraceCommand(ObdiagOriginCommand):
Expand Down
11 changes: 8 additions & 3 deletions handler/analyzer/analyze_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ def handle_from_node(node):
for node in self.nodes:
handle_from_node(node)

return analyze_tuples
# return analyze_tuples
self.stdio.print(analyze_tuples)
# self.stdio.start_loading('analyze result start')
# title, field_names, summary_list, summary_details_list = self.__get_overall_summary(analyze_tuples, self.directly_analyze_files)
# table = tabulate.tabulate(summary_list, headers=field_names, tablefmt="grid", showindex=False)
Expand Down Expand Up @@ -257,8 +258,12 @@ def __handle_from_node(self, node, local_store_parent_dir):
self.stdio.print(node_results)
count, max_queue_value = self.count_and_find_max_queues(node_results, queue_limit)
result_dict['tenant_name'] = self.tenant
result_dict['over_quene_limit'] = count
result_dict['max_quene'] = max_queue_value
if max_queue_value > queue_limit:
result_dict['is_queue'] = 'yes'
else:
result_dict['is_queue'] = 'no'
result_dict['over_queue_limit'] = count
result_dict['max_queue'] = max_queue_value
return result_dict

def count_and_find_max_queues(data, queue_limit):
Expand Down

0 comments on commit fa1ced8

Please sign in to comment.