diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-08 13:37:44 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-08 13:37:44 +0800 |
commit | 7b49f01537bef297dea74e3e1129a90594d955fb (patch) | |
tree | 847d2d1ac985e2a75954eae7eb228d7bd4c63dac /mbbsd/read.c | |
parent | b136074cbf3e7d666f511e9b233abc9587d05b3d (diff) | |
download | pttbbs-7b49f01537bef297dea74e3e1129a90594d955fb.tar pttbbs-7b49f01537bef297dea74e3e1129a90594d955fb.tar.gz pttbbs-7b49f01537bef297dea74e3e1129a90594d955fb.tar.bz2 pttbbs-7b49f01537bef297dea74e3e1129a90594d955fb.tar.lz pttbbs-7b49f01537bef297dea74e3e1129a90594d955fb.tar.xz pttbbs-7b49f01537bef297dea74e3e1129a90594d955fb.tar.zst pttbbs-7b49f01537bef297dea74e3e1129a90594d955fb.zip |
push bottom complete
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1731 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/read.c')
-rw-r--r-- | mbbsd/read.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c index ede71f6a..e96a9449 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -821,7 +821,6 @@ i_read(int cmdmode, char *direct, void (*dotitle) (), void (*doentry) (), onekey if( (last_line = getbtotal(currbid)) == 0 ){ setbtotal(currbid); setbottomtotal(currbid); - load_fileheader_bottom_cache(currbid, currdirect); last_line = get_num_records(currdirect, FHSZ); } sprintf(directbottom, "%s.bottom", direct); @@ -873,7 +872,10 @@ i_read(int cmdmode, char *direct, void (*dotitle) (), void (*doentry) (), onekey case PARTUPDATE: if (last_line < locmem->top_ln + p_lines) { if (bidcache > 0 && !(currmode & (MODE_SELECT | MODE_DIGEST))) - num = getbtotal(currbid)+getbottomtotal(currbid); + { + bottom_line = getbtotal(currbid); + num = bottom_line+getbottomtotal(currbid); + } else num = get_num_records(currdirect, FHSZ); |