From 301297e9fd6115e87b5e60d94f4b73afe13ba937 Mon Sep 17 00:00:00 2001 From: kanoi Date: Sun, 29 Jun 2014 00:08:14 +1000 Subject: [PATCH] correct copyright years and use defined constant as expected in ckdb --- src/ckdb.c | 5 +++-- src/ktree.c | 2 +- src/ktree.h | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ckdb.c b/src/ckdb.c index 4987b72c..7ec8e2f4 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -1,5 +1,5 @@ /* - * Copyright 2003-2014 Andrew Smith + * Copyright 1995-2014 Andrew Smith * Copyright 2014 Con Kolivas * * This program is free software; you can redistribute it and/or modify it @@ -3040,7 +3040,8 @@ static bool sharesummary_update(PGconn *conn, SHARES *s_row, SHAREERRORS *e_row, } else { MODIFYUPDATE(row, now, by, code, inet); - if ((row->countlastupdate + 10) < (row->sharecount + row->errorcount)) { + if ((row->countlastupdate + SHARESUMMARY_UPDATE_EVERY) < + (row->sharecount + row->errorcount)) { par = 0; params[par++] = bigint_to_buf(row->userid, NULL, 0); params[par++] = str_to_buf(row->workername, NULL, 0); diff --git a/src/ktree.c b/src/ktree.c index 28be53cd..e3e66ea7 100644 --- a/src/ktree.c +++ b/src/ktree.c @@ -1,5 +1,5 @@ /* - * Copyright 2003-2014 Andrew Smith + * Copyright 1995-2014 Andrew Smith * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free diff --git a/src/ktree.h b/src/ktree.h index 016cd0a3..7de08d8e 100644 --- a/src/ktree.h +++ b/src/ktree.h @@ -1,5 +1,5 @@ /* - * Copyright 2003-2014 Andrew Smith + * Copyright 1995-2014 Andrew Smith * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free