Skip to content

Commit

Permalink
Fix some bugs for obdiag 2.6.0 dev (#562)
Browse files Browse the repository at this point in the history
* Fix some bugs in the analyze memory function.

* fix

* fix

* fix
  • Loading branch information
Teingi authored Nov 21, 2024
1 parent a2c2684 commit 9aa2181
Show file tree
Hide file tree
Showing 4 changed files with 216 additions and 182 deletions.
13 changes: 9 additions & 4 deletions handler/analyzer/analyze_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,15 @@ def handle_from_node(node):
self.stdio.print("analyze nodes's log start. Please wait a moment...")
self.stdio.start_loading('analyze start')
for node in self.nodes:
if not self.is_ssh:
local_ip = NetUtils.get_inner_ip()
node = self.nodes[0]
node["ip"] = local_ip
if self.directly_analyze_files:
if nodes_threads:
break
node["ip"] = '127.0.0.1'
else:
if not self.is_ssh:
local_ip = NetUtils.get_inner_ip()
node = self.nodes[0]
node["ip"] = local_ip
node_threads = threading.Thread(target=handle_from_node, args=(node,))
node_threads.start()
nodes_threads.append(node_threads)
Expand Down
Loading

0 comments on commit 9aa2181

Please sign in to comment.