Mailinglist Archive: yast-commit (2080 mails)

< Previous Next >
[yast-commit] <web-client> master : correct nil check
  • From: Stefan Schubert <schubi@xxxxxxx>
  • Date: Fri, 11 Sep 2009 12:18:11 +0200
  • Message-id: <E1Mn6sQ-0000fj-Ar@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 735f0ad558fc65c5bcdc5cf5440332653b820356
Author: Stefan Schubert <schubi@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages