ref: refs/heads/master
commit f90bd649630a76cb31629c7bd99d0b1d0aeabea3
Author: Stefan Schubert
Date: Fri Jul 17 10:23:16 2009 +0200
fix concerning limits
---
plugins/status/app/models/status.rb | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/plugins/status/app/models/status.rb b/plugins/status/app/models/status.rb
index 95136ea..a31ef24 100644
--- a/plugins/status/app/models/status.rb
+++ b/plugins/status/app/models/status.rb
@@ -164,7 +164,10 @@ class Status < ActiveRecord::Base
#setting the limits
result.each do |key, value|
- path = rrdfile.chomp(".rrd") + "/" + key
+
+ path = rrdfile.chomp(".rrd")
+ path +="/" + key if key!="value" #do not take care about the value flag
+ path = path.tr('-','_')
if @limits.has_key?(path)
result[key] ||= Hash.new
result[key].merge!({"limit" => @limits[path] })
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org