summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-06 20:38:30 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-11-06 20:38:30 +0800
commit49d44a86c04c2f96038880c3bd98abf19ec27d5b (patch)
treeab0f70397630923387229946b2cc3b8a9b9fd17f /mbbsd
parent76227669108d6715800d95289b32269d69ba4fbe (diff)
downloadpttbbs-49d44a86c04c2f96038880c3bd98abf19ec27d5b.tar
pttbbs-49d44a86c04c2f96038880c3bd98abf19ec27d5b.tar.gz
pttbbs-49d44a86c04c2f96038880c3bd98abf19ec27d5b.tar.bz2
pttbbs-49d44a86c04c2f96038880c3bd98abf19ec27d5b.tar.lz
pttbbs-49d44a86c04c2f96038880c3bd98abf19ec27d5b.tar.xz
pttbbs-49d44a86c04c2f96038880c3bd98abf19ec27d5b.tar.zst
pttbbs-49d44a86c04c2f96038880c3bd98abf19ec27d5b.zip
To avoid huge load, sleep 0.1s after each card game, chichken, gamble transaction
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2316 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/card.c1
-rw-r--r--mbbsd/chicken.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/card.c b/mbbsd/card.c
index 5c25150b..0d973be2 100644
--- a/mbbsd/card.c
+++ b/mbbsd/card.c
@@ -380,6 +380,7 @@ game_log(int type, int money)
fclose(fp);
break;
}
+ usleep(100000); // sleep 0.1s
return 0;
}
diff --git a/mbbsd/chicken.c b/mbbsd/chicken.c
index 26bf1a95..c1b3cf20 100644
--- a/mbbsd/chicken.c
+++ b/mbbsd/chicken.c
@@ -383,6 +383,7 @@ ch_buyitem(int money, char *picture, int *item, int haveticket)
} else {
vmsg("²{ª÷¤£°÷ !!!");
}
+ usleep(100000); // sleep 0.1s
}
static void