Ninjastic
Home
Search
Users
Boards
Addresses
Ctrl + K
Toggle theme
Open menu
Post
Edited versions
Quotes to this post
Post
9220064
Topic
28402
Board
Mining software (miners)
Re: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.6.1
by
tjwebb
on
16/10/2014, 08:02:36 UTC
Quote from: ckolivas on October 13, 2014, 10:48:33 AM
Perhaps you're trying to read them as integers? (They're doubles).
0.0000 is not valid JSON at all, for anything. It should just read 0.0.
My workaround is here, so you can see:
https://github.com/hashware/node-cgminer-api/blob/master/lib/client.js#L105
. I have to manually replace "nan" with 0, otherwise JSON.parse() fails.