Browse Source

Use int64 for client_id in the generator

master
Con Kolivas 10 years ago
parent
commit
61ade17174
  1. 6
      src/generator.c

6
src/generator.c

@ -51,7 +51,7 @@ struct share_msg {
UT_hash_handle hh; UT_hash_handle hh;
int id; // Our own id for submitting upstream int id; // Our own id for submitting upstream
int client_id; int64_t client_id;
time_t submit_time; time_t submit_time;
double diff; double diff;
}; };
@ -63,7 +63,7 @@ struct stratum_msg {
struct stratum_msg *prev; struct stratum_msg *prev;
json_t *json_msg; json_t *json_msg;
int client_id; int64_t client_id;
}; };
typedef struct stratum_msg stratum_msg_t; typedef struct stratum_msg stratum_msg_t;
@ -1539,7 +1539,7 @@ static int parse_share(gdata_t *gdata, proxy_instance_t *proxi, const char *buf)
} }
ret = 1; ret = 1;
account_shares(proxi, share->diff, result); account_shares(proxi, share->diff, result);
LOGINFO("Proxy %d:%d share result %s from client %d", proxi->id, proxi->subid, LOGINFO("Proxy %d:%d share result %s from client %"PRId64, proxi->id, proxi->subid,
buf, share->client_id); buf, share->client_id);
free(share); free(share);
out: out:

Loading…
Cancel
Save