summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-17 20:18:04 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-17 20:18:04 +0800
commit1425e383959d2673f68fe242fd93ca964ce4fce6 (patch)
tree4a1035f7252a27f9166c38aa35326d405790e7fb /util
parent054b72f10e98006089f663c68a3fe39908fdce63 (diff)
downloadpttbbs-1425e383959d2673f68fe242fd93ca964ce4fce6.tar
pttbbs-1425e383959d2673f68fe242fd93ca964ce4fce6.tar.gz
pttbbs-1425e383959d2673f68fe242fd93ca964ce4fce6.tar.bz2
pttbbs-1425e383959d2673f68fe242fd93ca964ce4fce6.tar.lz
pttbbs-1425e383959d2673f68fe242fd93ca964ce4fce6.tar.xz
pttbbs-1425e383959d2673f68fe242fd93ca964ce4fce6.tar.zst
pttbbs-1425e383959d2673f68fe242fd93ca964ce4fce6.zip
fix sorting criteria for chc/five record
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2406 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/shmctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/shmctl.c b/util/shmctl.c
index f059597b..60f31238 100644
--- a/util/shmctl.c
+++ b/util/shmctl.c
@@ -251,8 +251,8 @@ static int
cmputmpfive(const void * i, const void * j)
{
userinfo_t *a=&SHM->uinfo[*(int*)i],*b=&SHM->uinfo[*(int*)j];
- int played_a=(a->five_win+a->five_lose+a->five_lose)!=0;
- int played_b=(b->five_win+b->five_lose+b->five_lose)!=0;
+ int played_a=(a->five_win+a->five_lose+a->five_tie)!=0;
+ int played_b=(b->five_win+b->five_lose+b->five_tie)!=0;
int type;
if ((type = played_b - played_a))
@@ -270,8 +270,8 @@ static int
cmputmpchc(const void * i, const void * j)
{
userinfo_t *a=&SHM->uinfo[*(int*)i],*b=&SHM->uinfo[*(int*)j];
- int total_a=a->chc_win+a->chc_lose+a->chc_lose;
- int total_b=b->chc_win+b->chc_lose+b->chc_lose;
+ int total_a=a->chc_win+a->chc_lose+a->chc_tie;
+ int total_b=b->chc_win+b->chc_lose+b->chc_tie;
int played_a=(total_a!=0);
int played_b=(total_b!=0);
int type;