1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-03 10:35:03 +00:00

Changed API reporting of MH/s for added precision.

This commit is contained in:
Wolf 2013-11-18 17:48:19 -06:00 committed by Noel Maersk
parent bc1ce6984b
commit 39b9945c11

2
api.c
View File

@ -981,7 +981,7 @@ static struct api_data *print_data(struct api_data *root, char *buf, bool isjson
case API_UTILITY:
case API_FREQ:
case API_MHS:
sprintf(buf, "%.2f", *((double *)(root->data)));
sprintf(buf, "%.4f", *((double *)(root->data)));
break;
case API_VOLTS:
sprintf(buf, "%.3f", *((float *)(root->data)));