small improvement
This commit is contained in:
@@ -175,7 +175,9 @@
|
|||||||
document.getElementById("{{ id }}").innerHTML = {{ id }}_now;
|
document.getElementById("{{ id }}").innerHTML = {{ id }}_now;
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for group in metricsgroups %}
|
{% for group in metricsgroups %}
|
||||||
set_{{ group }}();
|
try {
|
||||||
|
set_{{ group }}();
|
||||||
|
} catch (e) {}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
// gauge.set(catch_now);
|
// gauge.set(catch_now);
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -39,10 +39,10 @@ var opts = {
|
|||||||
generateGradient: true,
|
generateGradient: true,
|
||||||
highDpiSupport: true, // High resolution support
|
highDpiSupport: true, // High resolution support
|
||||||
staticZones: [
|
staticZones: [
|
||||||
{strokeStyle: "#00FF00", min: 0, max: 1}, // Red from 100 to 60
|
{strokeStyle: "#00FF00", min: 0, max: 2}, // Red from 100 to 60
|
||||||
{strokeStyle: "#0000FF", min: 1, max: 2}, // Yellow
|
{strokeStyle: "#0000FF", min: 2, max: 3}, // Yellow
|
||||||
{strokeStyle: "#00FFFF", min: 2, max: 3}, // Green
|
{strokeStyle: "#00FFFF", min: 3, max: 4}, // Green
|
||||||
{strokeStyle: "#FFDD00", min: 3, max: 5}, // Yellow
|
{strokeStyle: "#FFDD00", min: 4, max: 5}, // Yellow
|
||||||
{strokeStyle: "#FF0000", min: 5, max: 6} // Red
|
{strokeStyle: "#FF0000", min: 5, max: 6} // Red
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user