Skip to content

Commit

Permalink
Fix inverted parameters for hosts up / services up
Browse files Browse the repository at this point in the history
Refs #10
  • Loading branch information
algorys committed Jul 13, 2016
1 parent 45f6dde commit 8ab379d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alignak_app/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,11 @@ def update_hosts_menu(self, hosts_states, services_states):
str_host_up = 'Hosts UP (' + str(hosts_states[0]) + ')'
self.hosts_up_item.set_label(str_host_up)
if hosts_states[1] > 0:
str_host_nok = 'Hosts DOWN (' + str(services_states[0]) + ')'
str_host_nok = 'Hosts DOWN (' + str(hosts_states[1]) + ')'
self.hosts_down_item.set_label(str_host_nok)

if services_states[0] > 0:
str_service_up = 'Services UP (' + str(hosts_states[1]) + ')'
str_service_up = 'Services UP (' + str(services_states[0]) + ')'
self.services_up_item.set_label(str_service_up)
if services_states[1] > 0:
str_service_nok = 'Services DOWN (' + str(services_states[1]) + ')'
Expand Down

0 comments on commit 8ab379d

Please sign in to comment.