From: Russ Allbery Date: Wed, 26 Aug 2009 04:00:33 +0000 (-0700) Subject: Initialize xferStartTime for StoreData timings X-Git-Tag: openafs-devel-1_5_62~13 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=622065f98ea806314e1b7116f0b280092aa397b1;p=packages%2Fo%2Fopenafs.git 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 --- diff --git a/src/afs/afs_fetchstore.c b/src/afs/afs_fetchstore.c index b6e8b3f74..5688449a5 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 ) {