Don't show Offline badge when global disco is disabled (fixes #167)

This commit is contained in:
Jakob Borg 2014-04-30 22:17:43 +02:00
parent ac74ee1468
commit aff3cd01c5

View File

@ -190,7 +190,7 @@ func restGetSystem(w http.ResponseWriter) {
res["goroutines"] = runtime.NumGoroutine()
res["alloc"] = m.Alloc
res["sys"] = m.Sys
if discoverer != nil {
if cfg.Options.GlobalAnnEnabled && discoverer != nil {
res["extAnnounceOK"] = discoverer.ExtAnnounceOK()
}
cpuUsageLock.RLock()