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 <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Russ Allbery 2009-08-25 21:00:33 -07:00 committed by Derrick Brashear
parent a59df36211
commit 622065f98e

View File

@ -442,6 +442,7 @@ afs_CacheStoreDCaches(struct vcache *avc, struct dcache **dclist,
bytesToXfer = alen;
bytesXferred = 0;
GetuTime(&xferStartTime);
#endif /* AFS_NOSTATS */
while ( alen > 0 ) {