Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1250f24
)
not quite so many decimal places in "speedup" :-)
author
Andrew Tridgell
<tridge@samba.org>
Mon, 13 Apr 1998 04:44:49 +0000
(
04:44
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 13 Apr 1998 04:44:49 +0000
(
04:44
+0000)
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
baae9d4
..
cbda40e
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-92,14
+92,14
@@
static void report(int f)
}
#if HAVE_LONGLONG
}
#if HAVE_LONGLONG
- printf("wrote %lld bytes read %lld bytes %
g
bytes/sec\n",
+ printf("wrote %lld bytes read %lld bytes %
.2f
bytes/sec\n",
(long long)out,(long long)in,(in+out)/(0.5 + (t-starttime)));
(long long)out,(long long)in,(in+out)/(0.5 + (t-starttime)));
- printf("total size is %lld speedup is %
g
\n",
+ printf("total size is %lld speedup is %
.2f
\n",
(long long)tsize,(1.0*tsize)/(in+out));
#else
(long long)tsize,(1.0*tsize)/(in+out));
#else
- printf("wrote %ld bytes read %ld bytes %
g
bytes/sec\n",
+ printf("wrote %ld bytes read %ld bytes %
.2f
bytes/sec\n",
(long)out,(long)in,(in+out)/(0.5 + (t-starttime)));
(long)out,(long)in,(in+out)/(0.5 + (t-starttime)));
- printf("total size is %ld speedup is %
g
\n",
+ printf("total size is %ld speedup is %
.2f
\n",
(long)tsize,(1.0*tsize)/(in+out));
#endif
}
(long)tsize,(1.0*tsize)/(in+out));
#endif
}