show watched hosts in bold
This commit is contained in:
@@ -167,6 +167,7 @@ class Host:
|
||||
Host.hosts[name] = self
|
||||
self.num = num
|
||||
self.dyn = False
|
||||
self.watched = False
|
||||
self.upcount = 0
|
||||
self.interval = 0
|
||||
self.doesack = -1
|
||||
@@ -181,6 +182,8 @@ class Host:
|
||||
d['name'] = self.name
|
||||
if self.dyn:
|
||||
d['name'] += "*"
|
||||
if self.watched:
|
||||
d['name'] = "<b>%s</b>" % d['name']
|
||||
d['dyn'] = str(self.dyn)
|
||||
d['ver'] = str(self.cver)
|
||||
d['num'] = self.num
|
||||
|
||||
Reference in New Issue
Block a user