diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-23 18:46:42 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-23 18:46:42 +0800 |
commit | 2ebc88dd4fb23f68681e45e250fe6467c4e3689f (patch) | |
tree | 3edccded8a9efbc48a3823581025782204b3b4b1 | |
parent | deaf384374f6c3048d4a3afe6f54d6a89ed7b189 (diff) | |
download | pttbbs-2ebc88dd4fb23f68681e45e250fe6467c4e3689f.tar pttbbs-2ebc88dd4fb23f68681e45e250fe6467c4e3689f.tar.gz pttbbs-2ebc88dd4fb23f68681e45e250fe6467c4e3689f.tar.bz2 pttbbs-2ebc88dd4fb23f68681e45e250fe6467c4e3689f.tar.lz pttbbs-2ebc88dd4fb23f68681e45e250fe6467c4e3689f.tar.xz pttbbs-2ebc88dd4fb23f68681e45e250fe6467c4e3689f.tar.zst pttbbs-2ebc88dd4fb23f68681e45e250fe6467c4e3689f.zip |
better formating of vote result
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2861 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/vote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c index 9bccf14a..2cbcb806 100644 --- a/mbbsd/vote.c +++ b/mbbsd/vote.c @@ -304,11 +304,11 @@ b_result_one(vote_buffer_t *vbuf, boardheader_t * fh, int ind, int *total) fgets(inbuf, sizeof(inbuf), cfp); fprintf(tfp, "\n』щ布挡狦:(Τ %d щ布,–程щ %hd 布)\n", people_num, junk); - fprintf(tfp, " 匡 兜 羆布计 眔布瞯 眔布だガ\n"); + fprintf(tfp, " 匡 兜 羆布计 眔布瞯 眔布だガ\n"); for (junk = 0; junk < item_num; junk++) { fgets(inbuf, sizeof(inbuf), cfp); chomp(inbuf); - fprintf(tfp, " %-42s %3d 布 %02.2f%% %02.2f%%\n", inbuf + 3, counts[junk], + fprintf(tfp, " %-42s %3d 布 %6.2f%% %6.2f%%\n", inbuf + 3, counts[junk], (float)(counts[junk] * 100) / (float)(people_num), (float)(counts[junk] * 100) / (float)(*total)); } |