fixes for errors with distributed sessions not using the Python Broker
(Boeing r1821)
This commit is contained in:
parent
de58978f2c
commit
a69396d1d5
2 changed files with 16 additions and 3 deletions
|
@ -1274,6 +1274,13 @@ proc parseConfMessage { data len flags channel } {
|
|||
|
||||
# update the configuration for a node without displaying dialog box
|
||||
if { $tflags & 0x2 } {
|
||||
if { $obj == "emane" && $node == "" } {
|
||||
set node [lindex [findWlanNodes ""] 0]
|
||||
}
|
||||
if { $node == "" } {
|
||||
puts "ignoring Configure message for $obj with no node"
|
||||
return
|
||||
}
|
||||
# this is similar to popupCapabilityConfigApply
|
||||
setCustomConfig $node $obj $types $values 0
|
||||
if { $obj != "emane" && [nodeType $node] == "wlan"} {
|
||||
|
|
12
gui/exec.tcl
12
gui/exec.tcl
|
@ -499,7 +499,9 @@ proc monitor_loop {} {
|
|||
set cpuusageforserver [lindex $cpuusage 0]
|
||||
} else {
|
||||
set server [lindex $assigned_servers $i]
|
||||
set ip [lindex $exec_servers($server) 0]
|
||||
set srv [array get exec_servers $server]
|
||||
if { $srv == "" } { continue }
|
||||
set ip [lindex $srv 0]
|
||||
# TODO: receive CPU usage from other servers
|
||||
set cpuusageforserver 0
|
||||
}
|
||||
|
@ -765,7 +767,9 @@ proc manageCPUwindow {xpos ypos start} {
|
|||
set ip [getMyIP]
|
||||
} else {
|
||||
set server [lindex $assigned_servers $i]
|
||||
set ip [lindex $exec_servers($server) 0]
|
||||
set srv [array get exec_servers $server]
|
||||
if { $srv == "" } { continue }
|
||||
set ip [lindex $srv 0]
|
||||
}
|
||||
set server_cpuusage($ip) [lreplace $server_cpuusage($ip) 0 end]
|
||||
}
|
||||
|
@ -811,7 +815,9 @@ proc plotCPUusage { } {
|
|||
set ip [getMyIP]
|
||||
} else {
|
||||
set server [lindex $assigned_servers $i]
|
||||
set ip [lindex $exec_servers($server) 0]
|
||||
set srv [array get exec_servers $server]
|
||||
if { $srv == "" } { continue }
|
||||
set ip [lindex $srv 0]
|
||||
}
|
||||
|
||||
#need to add multiple cpuusgaehistory (array)
|
||||
|
|
Loading…
Reference in a new issue