Browse Source

Changed API reporting of MH/s for added precision.

nfactor-troky
Wolf 11 years ago committed by Noel Maersk
parent
commit
39b9945c11
  1. 2
      api.c

2
api.c

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

Loading…
Cancel
Save