On Thu, Jan 31, 2013 at 11:49 AM, Masiar Babazadeh <[email protected]> wrote:
> Hello everybody,
>
> I'm having a strange issue in the last couple of days: the return value of
> os.cpus() contains some values in the "time" object that are negative for
> some of the processes. I thought about a conversion error / overflow error
> from C++ to JS, but I can't really find where this is happening.
>
> I saw that in node_os.cc the function uv_cpu_info() is called, which returns
> the actual data for the CPUs (which should be correct and not negative) and
> then all the data is set. I'm not a C++ expert at all (I don't know the
> language as well as I do with Java or JS) so I'm asking here: where is the
> error happening? Is that "Integer::New" which overflows, maybe?
>
> Thanks

That's indeed what happens.  It's been fixed in [1].  v0.8.17 is the
first release that contains the bug fix.

[1] https://github.com/joyent/node/commit/50e88d0

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to