node: fix math server minor bug

This commit is contained in:
Stanley Cheung 2016-05-05 16:07:33 -07:00
parent 66458fa188
commit fa135621ae

View File

@ -68,7 +68,7 @@ function mathDiv(call, cb) {
function mathFib(stream) {
// Here, call is a standard writable Node object Stream
var previous = 0, current = 1;
for (var i = 0; i < stream.request.limit; i++) {
for (var i = 0; i < stream.request.getLimit(); i++) {
var response = new math.Num();
response.setNum(current);
stream.write(response);