When opts.coreIndex is set to 0 it does not check the first cores usage as it fails on line 36 and defaults to -1 returning the average of all cores...
opts.coreIndex = opts.coreIndex || -1;
I would also like it to return the coreIndex value if present from the callback function so you know which one your dealing with at that particular moment.
I shall issue a separate patch for each if this is alright with yourself?
Regards,
Simon