Mailinglist Archive: yast-commit (1771 mails)

< Previous Next >
[yast-commit] <web-client> master : fixed typos
  • From: Bjoern Geuken <bgeuken@xxxxxxx>
  • Date: Wed, 2 Sep 2009 11:19:17 +0200
  • Message-id: <E1Mim0K-0006sP-Qe@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 0b16c760964d8dc8c2e8950338096b43a8b38eb4
Author: Bjoern Geuken <bgeuken@xxxxxxx>
Date: Wed Sep 2 11:19:17 2009 +0200

fixed typos
---
.../status/app/controllers/status_controller.rb | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/plugins/status/app/controllers/status_controller.rb
b/plugins/status/app/controllers/status_controller.rb
index d791323..c343b71 100644
--- a/plugins/status/app/controllers/status_controller.rb
+++ b/plugins/status/app/controllers/status_controller.rb
@@ -20,8 +20,9 @@ class StatusController < ApplicationController
count = 0
data_list = label.map{ |v| count+=1; [count,v.to_f/divisor]}
@data_group[group].merge!({metric_name => data_list})
- divisor = (group == "memory")? 1024*1024 : 1 # take MByte for the value
- @limits[label] = limits if limits #TODO: implement maximum and minimum
format
+ count = 0
+ #TODO: implement maximum and minimum format
+ @limits_list[label] = limits.map{ |l| count+=1; [count,l.to_f/divisor]} if
limits
# @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