Commit 7e59ec4f2d6f132ab7f803d84a5b9c16c483a0d5

Con Kolivas 2013-10-31T23:28:57

Use round instead of floor for displayed pool difficulty.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 58d0211..9278cf5 100644
--- a/cgminer.c
+++ b/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];