bsharper / cgweb

GNU General Public License v3.0
14 stars 5 forks source link

Feature request khash #3

Open brianhenson opened 10 years ago

brianhenson commented 10 years ago

Instead of MHS can we make it where it detects if your running a scrypt coin and change to Khash? Or is there a way to change the code and display Khashs

Explas commented 10 years ago

What's the big problem here? you can see that you're mining @ let's say 0.7 MH/s so it means you get ~700kh/s

bsharper commented 10 years ago

This could actually be done in the server-config.json file as well.

The workerHeaders array expects its elements to be either a string or an array. If it's an array, it assumes the first element is the name of the property and the second element is the function that transforms the data into whatever is displayed.

So for instance, currently the MHS property is simply "MHS av". Change it to ["MHS av", mhsToKhsAv].

Then in mon-worker-report.js, add

function mhsToKhsAv(dt, worker) { return dt["MHS av"] * 1000; }

brianhenson commented 10 years ago

I will have to try that. It was more an look and feel issue than a bug.

On Thu, Feb 6, 2014 at 8:07 AM, bsharper notifications@github.com wrote:

This could actually be done in the server-config.json file as well.

The workerHeaders array expects its elements to be either a string or an array. If it's an array, it assumes the first element is the name of the property and the second element is the function that transforms the data into whatever is displayed.

So for instance, currently the MHS property is simply "MHS av". Change it to ["MHS av", mhsToKhsAv].

Then in mon-worker-report.js, add

function mhsToKhsAv(dt, worker) { return dt["MHS av"] * 1000; }

Reply to this email directly or view it on GitHubhttps://github.com/bsharper/cgweb/issues/3#issuecomment-34320925 .