This commit is contained in:
Girish Ramakrishnan 2016-04-05 21:39:40 -07:00
parent c05d6eb7b4
commit bef64f6fb6
1 changed files with 1 additions and 1 deletions

View File

@ -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