Skip to content
Snippets Groups Projects
Commit c3eb6498 authored by Stanley Cheung's avatar Stanley Cheung
Browse files

node: fix math server minor bug

parent acae9fe6
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ function mathDiv(call, cb) { ...@@ -68,7 +68,7 @@ function mathDiv(call, cb) {
function mathFib(stream) { function mathFib(stream) {
// Here, call is a standard writable Node object Stream // Here, call is a standard writable Node object Stream
var previous = 0, current = 1; 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(); var response = new math.Num();
response.setNum(current); response.setNum(current);
stream.write(response); stream.write(response);
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment