mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 15:27:53 +00:00
Use cgtime in driver-ztex.c
This commit is contained in:
parent
564fd36c8e
commit
3cb24c2ca3
@ -27,6 +27,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sha2.h>
|
#include <sha2.h>
|
||||||
#include "libztex.h"
|
#include "libztex.h"
|
||||||
|
#include "util.h"
|
||||||
|
|
||||||
#define GOLDEN_BACKLOG 5
|
#define GOLDEN_BACKLOG 5
|
||||||
|
|
||||||
@ -375,7 +376,7 @@ static bool ztex_prepare(struct thr_info *thr)
|
|||||||
struct cgpu_info *cgpu = thr->cgpu;
|
struct cgpu_info *cgpu = thr->cgpu;
|
||||||
struct libztex_device *ztex = cgpu->device_ztex;
|
struct libztex_device *ztex = cgpu->device_ztex;
|
||||||
|
|
||||||
gettimeofday(&now, NULL);
|
cgtime(&now);
|
||||||
get_datestamp(cgpu->init, &now);
|
get_datestamp(cgpu->init, &now);
|
||||||
|
|
||||||
ztex_selectFpga(ztex);
|
ztex_selectFpga(ztex);
|
||||||
|
Loading…
Reference in New Issue
Block a user