Mailinglist Archive: yast-commit (1809 mails)

< Previous Next >
[yast-commit] <web-client> network : status module: collect min and max limits
  • From: Bjoern Geuken <bgeuken@xxxxxxx>
  • Date: Wed, 2 Sep 2009 15:32:14 +0200
  • Message-id: <E1MjDJY-0001Ih-9N@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit f91316fc877e991c523d0de9dcdb51ecad3daf6b
Author: Bjoern Geuken <bgeuken@xxxxxxx>
Date: Wed Sep 2 15:32:14 2009 +0200

status module: collect min and max limits
---
.../status/app/controllers/status_controller.rb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/plugins/status/app/controllers/status_controller.rb
b/plugins/status/app/controllers/status_controller.rb
index c343b71..2199e66 100644
--- a/plugins/status/app/controllers/status_controller.rb
+++ b/plugins/status/app/controllers/status_controller.rb
@@ -22,7 +22,8 @@ class StatusController < ApplicationController
@data_group[group].merge!({metric_name => data_list})
count = 0
#TODO: implement maximum and minimum format
- @limits_list[label] = limits.map{ |l| count+=1; [count,l.to_f/divisor]} if
limits
+ @limits_list[label].merge!({:min => limits["min"].map{ |l| count+=1;
[count,l.to_f/divisor]}} if limits["min"]
+ @limits_list[label].merge!({:max => limits["max"].map{ |l| count+=1;
[count,l.to_f/divisor]}} if limits["max"]
# @data["/#{group}/#{metric_name}/..."] = data_list
end

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages