Skip to content

coreIndex fails || when set to the first core 0 #4

@jonsmith1982

Description

@jonsmith1982

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions