diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-29 16:52:48 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-29 16:52:48 +0800 |
commit | 522123712cb7a742987547edecebc044badc841c (patch) | |
tree | 1a9acbd56ee71b923c2c1d08e1a4499193eb57e7 | |
parent | 1b6e787dfb9b157a4270c672ec28bb26180fc284 (diff) | |
download | pttbbs-522123712cb7a742987547edecebc044badc841c.tar pttbbs-522123712cb7a742987547edecebc044badc841c.tar.gz pttbbs-522123712cb7a742987547edecebc044badc841c.tar.bz2 pttbbs-522123712cb7a742987547edecebc044badc841c.tar.lz pttbbs-522123712cb7a742987547edecebc044badc841c.tar.xz pttbbs-522123712cb7a742987547edecebc044badc841c.tar.zst pttbbs-522123712cb7a742987547edecebc044badc841c.zip |
Allowing set gambling and bidding end time to minute.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4257 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/stuff.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index 4cdae745..c35f9a52 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -141,6 +141,10 @@ gettime(int line, time4_t dt, const char*head) do { getdata_buf(line, i+33, "®É(0-23):", yn, 3, NUMECHO); } while ((endtime.tm_hour = atoi(yn)) < 0 || endtime.tm_hour > 23); + snprintf(yn, sizeof(yn), "%d", ptime->tm_min); + do { + getdata_buf(line, i+42, "¤À(0-59):", yn, 3, NUMECHO); + } while ((endtime.tm_min = atoi(yn)) < 0 || endtime.tm_min > 23); t = mktime(&endtime); /* saturation check */ if(t < 0) |