Browse Source

Use round instead of floor for displayed pool difficulty.

Con Kolivas 12 years ago
parent
commit
7e59ec4f2d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cgminer.c

+ 1 - 1
cgminer.c

@@ -2803,7 +2803,7 @@ static bool submit_upstream_work(struct work *work, CURL *curl, bool resubmit)
 	err = json_object_get(val, "error");
 
 	if (!QUIET) {
-		int intdiff = floor(work->work_difficulty);
+		int intdiff = round(work->work_difficulty);
 		char diffdisp[16], *outhash;
 		unsigned char rhash[32];