Visual Console Refactor: bugfixes
Former-commit-id: 0c06a88cc6136961cbb7622e373e5c1dfe265c27
This commit is contained in:
parent
17a49007de
commit
683dcf3469
|
@ -2133,7 +2133,7 @@ function pandoraFlotArea(
|
||||||
var plot = $.plot($("#" + graph_id), datas, options);
|
var plot = $.plot($("#" + graph_id), datas, options);
|
||||||
|
|
||||||
// Re-calculate the graph height with the legend height
|
// Re-calculate the graph height with the legend height
|
||||||
if (dashboard || vconsole) {
|
if (dashboard) {
|
||||||
$acum = 0;
|
$acum = 0;
|
||||||
if (dashboard) $acum = 35;
|
if (dashboard) $acum = 35;
|
||||||
var hDiff =
|
var hDiff =
|
||||||
|
|
|
@ -1748,7 +1748,9 @@ function round_with_decimals(value, multiplier) {
|
||||||
if (typeof multiplier === "undefined") multiplier = 1;
|
if (typeof multiplier === "undefined") multiplier = 1;
|
||||||
|
|
||||||
// Return non numeric types without modification
|
// Return non numeric types without modification
|
||||||
if (typeof value !== "number") return value;
|
if (typeof value !== "number" || Number.isNaN(value)) {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
if (value * multiplier == 0) return 0;
|
if (value * multiplier == 0) return 0;
|
||||||
if (Math.abs(value) * multiplier >= 1) {
|
if (Math.abs(value) * multiplier >= 1) {
|
||||||
|
|
Loading…
Reference in New Issue