Skip to content

Commit

Permalink
Fix #43
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed Sep 9, 2016
1 parent 43daeef commit 3771afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/HotSpotPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ HotSpotPlugin.prototype = {
packetLoss: response.match(/\sreceived,\s(\d+(\.\d+)?)%\spacket\sloss/)[1],
time: response.match(/,\stime\s(\d+)ms/)[1]
};
if (stats.match(statsPattern)) {
if (!!stats && stats.match(statsPattern)) {
result.stat.min = stats.match(statsPattern)[1];
result.stat.max = stats.match(statsPattern)[3];
result.stat.avg = stats.match(statsPattern)[2];
Expand Down

0 comments on commit 3771afb

Please sign in to comment.