Skip to content

Commit

Permalink
Limit message log to last 256 messages.
Browse files Browse the repository at this point in the history
Signed-off-by: Achim Kraus <achim.kraus@bosch-si.com>
  • Loading branch information
Achim Kraus authored and sbernard31 committed Apr 19, 2016
1 parent 049fe9e commit 4559b34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ lwClientControllers.controller('ClientDetailCtrl', [
$scope.$apply(function() {
var log = JSON.parse(msg.data);
log.date = $filter('date')(new Date(log.timestamp), 'HH:mm:ss.sss');
console.log(log);
if (256 < $scope.coaplogs.length) $scope.coaplogs.shift();
$scope.coaplogs.push(log);
});
};
Expand Down

0 comments on commit 4559b34

Please sign in to comment.