Commit 248fbb8c authored by Andrew Tridgell's avatar Andrew Tridgell

syslog some stats

parent fabf5ea7
......@@ -32,9 +32,16 @@ static void report(int f)
time_t t = time(NULL);
extern int am_server;
extern int am_sender;
extern int am_daemon;
if (!verbose) return;
if (am_daemon) {
rprintf(FINFO, "wrote %.0f bytes read %.0f bytes total size %.0f\n",
(double)write_total(),(double)read_total(),
(double)total_size);
}
if (am_server && am_sender) {
write_longint(f,read_total());
write_longint(f,write_total());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment