diff options
-rw-r--r-- | pttbbs/daemon/postd/rebuild.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pttbbs/daemon/postd/rebuild.c b/pttbbs/daemon/postd/rebuild.c index 4c2946e8..ac0413e8 100644 --- a/pttbbs/daemon/postd/rebuild.c +++ b/pttbbs/daemon/postd/rebuild.c @@ -150,7 +150,9 @@ void rebuild_board(int bid GCC_UNUSED, boardheader_t *bp, int is_remote) } end = time4(NULL); printf(" Total %d entries (%ld bytes, %ldKb/s), Exec: %ds, Sync: %ds\n", - num, output_bytes, output_bytes / (end - start) / 1024, + num, output_bytes, + (end > start) ? output_bytes / (end - start) / 1024 : + output_bytes / 1024, syncpoint - start, end - syncpoint); close(s); } |