diff --git a/htdocs/gfx/svg-defs.svg b/htdocs/gfx/svg-defs.svg
index 9579f00f..19451804 100644
--- a/htdocs/gfx/svg-defs.svg
+++ b/htdocs/gfx/svg-defs.svg
@@ -29,5 +29,6 @@
+
diff --git a/htdocs/index.html b/htdocs/index.html
index d474edda..5a57d85b 100644
--- a/htdocs/index.html
+++ b/htdocs/index.html
@@ -241,7 +241,7 @@
-
+
REC
diff --git a/htdocs/lib/Spectrum.js b/htdocs/lib/Spectrum.js
index 9355ea92..f979bc9f 100644
--- a/htdocs/lib/Spectrum.js
+++ b/htdocs/lib/Spectrum.js
@@ -1,5 +1,6 @@
-function Spectrum(el) {
+function Spectrum(el, msec) {
this.el = el;
+ this.msec = msec;
this.ctx = null;
this.min = 0;
this.max = 0;
@@ -24,8 +25,9 @@ Spectrum.prototype.update = function(data) {
}
// this.min = Math.min(...data);
+// this.max = Math.max(...data);
this.min = waterfall_min_level - 5;
- this.max = Math.max(...data);
+ this.max = waterfall_max_level + 5;
};
Spectrum.prototype.draw = function() {
@@ -55,7 +57,7 @@ Spectrum.prototype.draw = function() {
// Clear canvas to transparency
this.ctx.clearRect(0, 0, spec_width, spec_height);
- if(spec_width < data_width) {
+ if(spec_width <= data_width) {
var x_ratio = data_width / spec_width;
var y_ratio = spec_height / data_height;
for(var x=0; x
+