Commit | Line | Data |
---|---|---|
ac23c334 | 1 | --- orig/flist.c 2005-01-25 00:53:58 |
fcc90290 | 2 | +++ flist.c 2004-09-03 14:17:31 |
ac23c334 | 3 | @@ -1087,6 +1087,7 @@ struct file_list *send_file_list(int f, |
fcc90290 WD |
4 | start_filelist_progress("building file list"); |
5 | ||
6 | start_write = stats.total_written; | |
7 | + stats.flist_buildtime = time(NULL); | |
8 | ||
9 | flist = flist_new(f == -1 ? WITHOUT_HLINK : WITH_HLINK, | |
ac23c334 WD |
10 | "send_file_list"); |
11 | @@ -1251,6 +1252,9 @@ struct file_list *send_file_list(int f, | |
fcc90290 WD |
12 | } |
13 | } | |
14 | ||
15 | + stats.flist_buildtime = time(NULL) - stats.flist_buildtime; | |
16 | + stats.flist_xfertime = time(NULL); | |
17 | + | |
18 | if (f != -1) { | |
19 | send_file_entry(NULL, f, 0); | |
20 | ||
ac23c334 | 21 | @@ -1258,6 +1262,8 @@ struct file_list *send_file_list(int f, |
fcc90290 WD |
22 | finish_filelist_progress(flist); |
23 | } | |
24 | ||
25 | + stats.flist_xfertime = time(NULL) - stats.flist_xfertime; | |
26 | + | |
27 | if (flist->hlink_pool) { | |
28 | pool_destroy(flist->hlink_pool); | |
29 | flist->hlink_pool = NULL; | |
ac23c334 | 30 | --- orig/main.c 2005-01-24 01:43:10 |
fcc90290 | 31 | +++ main.c 2004-09-03 14:18:47 |
ac23c334 | 32 | @@ -181,6 +181,10 @@ static void report(int f) |
fcc90290 WD |
33 | rprintf(FINFO,"Matched data: %.0f bytes\n", |
34 | (double)stats.matched_data); | |
35 | rprintf(FINFO,"File list size: %d\n", stats.flist_size); | |
36 | + rprintf(FINFO,"File list generation: %lu seconds\n", | |
37 | + stats.flist_buildtime); | |
38 | + rprintf(FINFO,"File list transfer time: %lu seconds\n", | |
39 | + stats.flist_xfertime); | |
40 | rprintf(FINFO,"Total bytes sent: %.0f\n", | |
41 | (double)total_written); | |
42 | rprintf(FINFO,"Total bytes received: %.0f\n", | |
ac23c334 | 43 | --- orig/rsync.h 2005-01-25 00:53:58 |
fcc90290 | 44 | +++ rsync.h 2004-09-03 14:05:13 |
ac23c334 | 45 | @@ -540,6 +540,8 @@ struct stats { |
fcc90290 WD |
46 | int64 literal_data; |
47 | int64 matched_data; | |
48 | int flist_size; | |
49 | + time_t flist_buildtime; | |
50 | + time_t flist_xfertime; | |
51 | int num_files; | |
52 | int num_transferred_files; | |
53 | int current_file_index; |