mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
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:
parent
a59df36211
commit
622065f98e
@ -442,6 +442,7 @@ afs_CacheStoreDCaches(struct vcache *avc, struct dcache **dclist,
|
|||||||
bytesToXfer = alen;
|
bytesToXfer = alen;
|
||||||
bytesXferred = 0;
|
bytesXferred = 0;
|
||||||
|
|
||||||
|
GetuTime(&xferStartTime);
|
||||||
#endif /* AFS_NOSTATS */
|
#endif /* AFS_NOSTATS */
|
||||||
|
|
||||||
while ( alen > 0 ) {
|
while ( alen > 0 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user