fix typo
This commit is contained in:
parent
c05d6eb7b4
commit
bef64f6fb6
@ -320,7 +320,7 @@ Cloudron.prototype._checkGraphs = function (targets, from) {
|
||||
res = request.get(this._origin + '/api/v1/cloudron/graphs').query(params).end();
|
||||
process.stdout.write('.');
|
||||
if (res.statusCode !== 200) continue;
|
||||
if (!util.isArray(res.body) && res.body.length !== targets.length) continue;
|
||||
if (!util.isArray(res.body) || res.body.length !== targets.length) continue;
|
||||
|
||||
for (var j = 0; j < res.body.length; j++) {
|
||||
if (res.body[j].datapoints.length === 0) break; // no data
|
||||
|
Loading…
Reference in New Issue
Block a user