Health icon tootip fix
This commit is contained in:
parent
ff7ddb8435
commit
2ee2a2907d
|
@ -16,10 +16,10 @@
|
||||||
|
|
||||||
string iconColor = "text-success";
|
string iconColor = "text-success";
|
||||||
string ptMagicHealthIcon = "fa-heartbeat";
|
string ptMagicHealthIcon = "fa-heartbeat";
|
||||||
string ptMagicHealthTooltip = "PT Magic is alive and healthy! <br> Time elapsed since last run:"+ lastRuntime;
|
string ptMagicHealthTooltip = "PT Magic is alive and healthy! Time elapsed since last run:" + Math.Round(elapsedSecondsSinceRuntime / 60, 1) + " mins.";
|
||||||
if (elapsedSecondsSinceRuntime > (intervalSeconds * 2)) {
|
if (elapsedSecondsSinceRuntime > (intervalSeconds * 2)) {
|
||||||
ptMagicHealthIcon = "fa-exclamation-triangle";
|
ptMagicHealthIcon = "fa-exclamation-triangle";
|
||||||
ptMagicHealthTooltip = "PT Magic seems to have problems, check the logs! Time elapsed since last run: "+ Math.Round(elapsedSecondsSinceRuntime / 60, 1) + " mins.";
|
ptMagicHealthTooltip = "PT Magic seems to have problems, check the logs! Time elapsed since last run: " + Math.Round(elapsedSecondsSinceRuntime / 60, 1) + " mins.";
|
||||||
iconColor = "text-danger";
|
iconColor = "text-danger";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue