uwa_sysload 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/uwa_sysload/config.rb +1 -1
- data/lib/uwa_sysload/widget.rb +1 -2
- data/resources/script.js +6 -1
- metadata +2 -2
data/lib/uwa_sysload/config.rb
CHANGED
data/lib/uwa_sysload/widget.rb
CHANGED
data/resources/script.js
CHANGED
@@ -5,7 +5,11 @@ widget.graph.style.backgroundImage = 'url(' + widget.remoteUrl + 'resource/bg.gi
|
|
5
5
|
|
6
6
|
widget.onLoad = function() {
|
7
7
|
widget.setBody(widget.graph);
|
8
|
-
|
8
|
+
widget.onRefresh();
|
9
|
+
}
|
10
|
+
|
11
|
+
widget.onRefresh = function() {
|
12
|
+
count = (widget.graph.getDimensions().width / widget.bar_width).toFixed(0);
|
9
13
|
widget.remoteJson('values?count=' + count, widget.onValues);
|
10
14
|
}
|
11
15
|
|
@@ -21,6 +25,7 @@ widget.onValues = function(values) {
|
|
21
25
|
bar.setStyle('left', i * widget.bar_width + 'px');
|
22
26
|
bar.setStyle('width', widget.bar_width + 'px');
|
23
27
|
bar.setStyle('opacity', values[i]);
|
28
|
+
bar.setStyle('filter', 'alpha(opacity=' + height + ')');
|
24
29
|
bar.appendText = ' ';
|
25
30
|
widget.graph.appendChild(bar);
|
26
31
|
}
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: uwa_sysload
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "0.
|
7
|
-
date: 2007-04-
|
6
|
+
version: "0.4"
|
7
|
+
date: 2007-04-12 00:00:00 +02:00
|
8
8
|
summary: UWA System Load Monitor widget
|
9
9
|
require_paths:
|
10
10
|
- lib
|