From 622065f98ea806314e1b7116f0b280092aa397b1 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Tue, 25 Aug 2009 21:00:33 -0700 Subject: [PATCH] Initialize xferStartTime for StoreData timings In the reorganization of fetch and store procs, the initialization of the transfer start time for a store was lost, leading to meaningless statistics from the uninitialized variable. Initialize the transfer time at the start of transferring each chunk and move the variable into the for loop. Reviewed-on: http://gerrit.openafs.org/340 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/afs_fetchstore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/afs/afs_fetchstore.c b/src/afs/afs_fetchstore.c index b6e8b3f741..5688449a5b 100644 --- a/src/afs/afs_fetchstore.c +++ b/src/afs/afs_fetchstore.c @@ -442,6 +442,7 @@ afs_CacheStoreDCaches(struct vcache *avc, struct dcache **dclist, bytesToXfer = alen; bytesXferred = 0; + GetuTime(&xferStartTime); #endif /* AFS_NOSTATS */ while ( alen > 0 ) {