Don't poll histogram server for textstatus in simulation and script validator mode.
This commit is contained in:
@@ -1782,9 +1782,15 @@ Publish SAT_TABLE user
|
||||
# Make controller for histmem textstatus. Used by hmstat proc
|
||||
set host [dict get $::HISTMEM_HOSTPORT HMSTAT HOST]
|
||||
set port [dict get $::HISTMEM_HOSTPORT HMSTAT PORT]
|
||||
if {$::histogram_memory::histmem_simulation == "false"} {
|
||||
MakeSctController sct_hmm astvelsel $host:$port
|
||||
}
|
||||
|
||||
proc ::histogram_memory::hmstat {args} {
|
||||
variable histmem_simulation
|
||||
if {$histmem_simulation == "true"} {
|
||||
return
|
||||
}
|
||||
set startIndex -1
|
||||
# Try three times to get at least some data following the HTTP header.
|
||||
# Usually we get all the data but sometimes we just get the header.
|
||||
@@ -1838,7 +1844,10 @@ Publish SAT_TABLE user
|
||||
}
|
||||
}
|
||||
# Poll to keep HTTP connection alive
|
||||
if {$::histogram_memory::histmem_simulation == "false"} {
|
||||
sicspoll add ::histogram_memory::hmstat script 30 ::histogram_memory::hmstat
|
||||
}
|
||||
|
||||
|
||||
namespace eval ::histogram_memory {
|
||||
#TODO Create GumTree commands to setup, start and stop the histmem
|
||||
|
||||
Reference in New Issue
Block a user