output changes
authorArt Cancro <ajc@citadel.org>
Tue, 18 Oct 2005 19:43:25 +0000 (19:43 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 18 Oct 2005 19:43:25 +0000 (19:43 +0000)
citadel/serv_fulltext.c

index eab74d5b0bdd2846116c13a82ba435487599ca94..2c2084b3e1b11e50c1620f3bc5eb2f9bad091bdf 100644 (file)
@@ -79,7 +79,9 @@ void ft_flush_cache(void) {
 
        for (i=0; i<65536; ++i) {
                if ((time(NULL) - last_update) > 5L) {
-                       lprintf(5, "Flushing index cache to disk (%d of 65536)\n", i);
+                       lprintf(5, "Flushing index cache to disk (%d%% complete)\n",
+                               (i * 100 / 65536)
+                       );
                        last_update = time(NULL);
                }
                if (ftc_msgs[i] != NULL) {