diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-21 09:57:13 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-01-21 09:57:13 +0800 |
commit | 6e9ba003bbfb7968d74bb3e87093f2c1b0acb19a (patch) | |
tree | 3de5b80caa7e83b6c20cd86da69f7db90eadf206 /mbbsd | |
parent | b53295079fcb7ea46a2f49ce21eb29ea4c786c6a (diff) | |
download | pttbbs-6e9ba003bbfb7968d74bb3e87093f2c1b0acb19a.tar pttbbs-6e9ba003bbfb7968d74bb3e87093f2c1b0acb19a.tar.gz pttbbs-6e9ba003bbfb7968d74bb3e87093f2c1b0acb19a.tar.bz2 pttbbs-6e9ba003bbfb7968d74bb3e87093f2c1b0acb19a.tar.lz pttbbs-6e9ba003bbfb7968d74bb3e87093f2c1b0acb19a.tar.xz pttbbs-6e9ba003bbfb7968d74bb3e87093f2c1b0acb19a.tar.zst pttbbs-6e9ba003bbfb7968d74bb3e87093f2c1b0acb19a.zip |
- fix limit edit display
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3848 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 662708e9..172ffd8e 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1942,18 +1942,18 @@ editLimits(unsigned char *pregtime, unsigned char *plogins, } while (temp < 0 || temp > 255); regtime = (unsigned char)temp; - sprintf(genbuf, "%u", logins); + sprintf(genbuf, "%u", logins*10); do { getdata_buf(b_lines - 1, 0, - "上站次數下限 (0~2550):", genbuf, 5, LCECHO); + "上站次數下限 (0~2550,以10為單位):", genbuf, 5, LCECHO); temp = atoi(genbuf); } while (temp < 0 || temp > 2550); logins = (unsigned char)(temp / 10); - sprintf(genbuf, "%u", posts); + sprintf(genbuf, "%u", posts*10); do { getdata_buf(b_lines - 1, 0, - "文章篇數下限 (0~2550):", genbuf, 5, LCECHO); + "文章篇數下限 (0~2550,以10為單位):", genbuf, 5, LCECHO); temp = atoi(genbuf); } while (temp < 0 || temp > 2550); posts = (unsigned char)(temp / 10); |