|
|
|
@ -2071,12 +2071,10 @@ static void suffix_string(uint64_t val, char *buf, size_t bufsiz, int sigdigits)
@@ -2071,12 +2071,10 @@ static void suffix_string(uint64_t val, char *buf, size_t bufsiz, int sigdigits)
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void get_statline(char *buf, size_t bufsiz, struct cgpu_info *cgpu) |
|
|
|
|
double cgpu_runtime(struct cgpu_info *cgpu) |
|
|
|
|
{ |
|
|
|
|
char displayed_hashes[16], displayed_rolling[16]; |
|
|
|
|
uint64_t dh64, dr64; |
|
|
|
|
struct timeval now; |
|
|
|
|
double dev_runtime, wu; |
|
|
|
|
double dev_runtime; |
|
|
|
|
|
|
|
|
|
if (cgpu->dev_start_tv.tv_sec == 0) |
|
|
|
|
dev_runtime = total_secs; |
|
|
|
@ -2087,6 +2085,16 @@ static void get_statline(char *buf, size_t bufsiz, struct cgpu_info *cgpu)
@@ -2087,6 +2085,16 @@ static void get_statline(char *buf, size_t bufsiz, struct cgpu_info *cgpu)
|
|
|
|
|
|
|
|
|
|
if (dev_runtime < 1.0) |
|
|
|
|
dev_runtime = 1.0; |
|
|
|
|
return dev_runtime; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void get_statline(char *buf, size_t bufsiz, struct cgpu_info *cgpu) |
|
|
|
|
{ |
|
|
|
|
char displayed_hashes[16], displayed_rolling[16]; |
|
|
|
|
double dev_runtime, wu; |
|
|
|
|
uint64_t dh64, dr64; |
|
|
|
|
|
|
|
|
|
dev_runtime = cgpu_runtime(cgpu); |
|
|
|
|
|
|
|
|
|
wu = cgpu->diff1 / dev_runtime * 60.0; |
|
|
|
|
|
|
|
|
|