git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
stats: incorrect clock square algorithm
[openafs.git]
/
src
/
afs
/
afs_stats.h
diff --git
a/src/afs/afs_stats.h
b/src/afs/afs_stats.h
index
0fd5298
..
1d6c86a
100644
(file)
--- a/
src/afs/afs_stats.h
+++ b/
src/afs/afs_stats.h
@@
-1067,7
+1067,7
@@
struct afs_stats_xferData {
+ 2 * (t2.tv_usec / 1000) * (t2.tv_usec % 1000) / 1000 \
+ (((t2.tv_usec % 1000) > 707) ? 1 : 0); \
} \
- if (t1.tv_usec > 1000000) { \
+ while (t1.tv_usec > 1000000) { \
t1.tv_usec -= 1000000; \
t1.tv_sec++; \
} \