ref: refs/heads/network
commit 735f0ad558fc65c5bcdc5cf5440332653b820356
Author: Stefan Schubert
Date: Fri Sep 11 12:18:11 2009 +0200
correct nil check
---
.../status/app/controllers/status_controller.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/status/app/controllers/status_controller.rb b/plugins/status/app/controllers/status_controller.rb
index e40ea3b..87d1189 100644
--- a/plugins/status/app/controllers/status_controller.rb
+++ b/plugins/status/app/controllers/status_controller.rb
@@ -23,8 +23,8 @@ class StatusController < ApplicationController
if @data_group.has_key? group and @data_group[group].has_key? metric_name
for value in @data_group[group][metric_name]
- if not @limits_list[key][:min][0][1].nil? and value[1] < @limits_list[key][:min][0][1]\
- or not @limits_list[key][:max][0][1].nil? and value[1] > @limits_list[key][:max][0][1]
+ if not @limits_list[key][:min][0].nil? and value[1] < @limits_list[key][:min][0][1]\
+ or not @limits_list[key][:max][0].nil? and value[1] > @limits_list[key][:max][0][1]
if key == "df"
@limits_list[:reached] += _("Disk free limits exceeded;")
else
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org