Fix statistics formatting.
authorMartin Pool <mbp@samba.org>
Tue, 26 Mar 2002 11:58:10 +0000 (11:58 +0000)
committerMartin Pool <mbp@samba.org>
Tue, 26 Mar 2002 11:58:10 +0000 (11:58 +0000)
memstats.c
stats.c

index b709ce25f713409fbc8d50636de1f7ca68620918..9655d73be38561f5fd74e45b800580ad622dd93c 100644 (file)
@@ -39,15 +39,15 @@ void show_mem_stats(void)
        
        rprintf(FINFO, "Memory usage:\n"
                "  %10s\n"
-               "  %10ld    file_list\n"
-               "    %10ld  flist_size\n"  
-               "  %10ld    hlink_list\n"
-               "  %10ld    file_structs (and associated data)\n"
-               "  %10ld    string_areas\n"
-               "  %10ld    exclude_structs\n"
-               "  %10ld    map_structs\n"
-               "  %10ld    tags\n"
-               "  %10ld    delete_list\n"
+               "  %10ld                               file_list\n"
+               "  %10ld                                 flist_size\n"  
+               "  %10ld                               hlink_list\n"
+               "  %10ld                               file_structs (and associated data)\n"
+               "  %10ld                               string_areas\n"
+               "  %10ld                               exclude_structs\n"
+               "  %10ld                               map_structs\n"
+               "  %10ld                               tags\n"
+               "  %10ld                               delete_list\n"
                ,
                "bytes",
                (long) stats.main_flist,
@@ -83,9 +83,13 @@ void show_malloc_stats(void)
                "  %10s\n",
                "bytes");
 
-       rprintf(FINFO, "  %10ld      from sbrk()\n", (long) mi.arena);
-       rprintf(FINFO, "  %10ld      from mmap()\n", (long) mi.hblkhd);
-       rprintf(FINFO, "  %10ld      in use\n", (long) mi.uordblks);
-       rprintf(FINFO, "  %10ld      free in heap\n", (long) mi.fordblks);
+       rprintf(FINFO, "  %10ld                               from sbrk()\n",
+               (long) mi.arena);
+       rprintf(FINFO, "  %10ld                               from mmap()\n",
+               (long) mi.hblkhd);
+       rprintf(FINFO, "  %10ld                               in use\n",
+               (long) mi.uordblks);
+       rprintf(FINFO, "  %10ld                               free in heap\n",
+               (long) mi.fordblks);
 #endif                         /* HAVE_MALLINFO */
 }
diff --git a/stats.c b/stats.c
index 5f6323caca9478737adc9651670e41ed3f6536f3..ece52b4bc2ee83a5e73b38709a9a534109095fb7 100644 (file)
--- a/stats.c
+++ b/stats.c
@@ -26,13 +26,13 @@ void show_file_stats(void)
 
        rprintf(FINFO, "File statistics:\n"
                "  %10s %12s\n"
-               "  %10ld %12.0f                         files\n"
-               "  %10ld %12.0f                           transferred\n"
-               "  %10ld %12.0f                             new\n"
-               "             %12.0f                         literal data\n"
-               "             %12.0f                         matched data\n"
-               " %10s %12s                               up-to-date\n"
-               " %10s %12s                               removed\n"
+               "  %10ld %12.0f                  files\n"
+               "  %10ld %12.0f                    transferred\n"
+               "  %10ld %12.0f                      new\n"
+               "             %12.0f                      literal data\n"
+               "             %12.0f                      matched data\n"
+               "  %10s %12s                    up-to-date\n"
+               "  %10s %12s                    removed\n"
                ,
                "files", "bytes",
                (long) stats.num_files,
@@ -57,7 +57,7 @@ void show_net_stats(void)
        
        rprintf(FINFO, "Network statistics\n"
                "  %10s %10s %10s\n"
-               "  %10.0f %10.0f %10.2f                total bytes\n"
+               "  %10.0f %10.0f %10.2f         total bytes\n"
                ,
                "read", "write", "bytes/s",
                (double) stats.total_read,
@@ -70,7 +70,7 @@ void show_time_stats(void)
 {
        rprintf(FINFO, "Timing statistics\n"
                "  %10s\n"
-               "  %10ld                                      elapsed\n"
+               "  %10ld                               elapsed\n"
                ,
                "seconds",
                (long) time(NULL)-starttime);