mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Wrong addition solved in add_faux_rows by adding parseInt
This commit is contained in:
Vendored
+1
-1
@@ -3795,7 +3795,7 @@
|
||||
*/
|
||||
fn.add_faux_rows = function(rows) {
|
||||
var actual_rows = this.rows;
|
||||
var max_rows = actual_rows + (rows || 1);
|
||||
var max_rows = actual_rows + parseInt(rows || 1);
|
||||
|
||||
for (var r = max_rows; r > actual_rows; r--) {
|
||||
for (var c = this.cols; c >= 1; c--) {
|
||||
|
||||
@@ -2960,7 +2960,7 @@
|
||||
*/
|
||||
fn.add_faux_rows = function(rows) {
|
||||
var actual_rows = this.rows;
|
||||
var max_rows = actual_rows + (rows || 1);
|
||||
var max_rows = actual_rows + parseInt(rows || 1);
|
||||
|
||||
for (var r = max_rows; r > actual_rows; r--) {
|
||||
for (var c = this.cols; c >= 1; c--) {
|
||||
|
||||
Reference in New Issue
Block a user