From 232e1935850c63c9c1c9682c29bf4315d201c074 Mon Sep 17 00:00:00 2001 From: Shamser Ahmed Date: Fri, 8 Nov 2024 09:39:01 +0000 Subject: [PATCH] HPCC-32803 Changes following review Signed-off-by: Shamser Ahmed --- dali/ft/filecopy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dali/ft/filecopy.cpp b/dali/ft/filecopy.cpp index 7f11032418e..31e621fcea2 100644 --- a/dali/ft/filecopy.cpp +++ b/dali/ft/filecopy.cpp @@ -3846,7 +3846,7 @@ cost_type FileSprayer::updateSourceProperties() cost_type curReadCost = calcFileAccessCost(subfile, 0, curProgress.numReads); subfile->addAttrValue(getDFUQResultFieldName(DFUQRFnumDiskReads), curProgress.numReads); cost_type legacyReadCost = getLegacyReadCost(subfile->queryAttributes(), subfile); - subfile->addAttrValue(getDFUQResultFieldName(DFUQRFreadCost), curReadCost); + subfile->addAttrValue(getDFUQResultFieldName(DFUQRFreadCost), legacyReadCost + curReadCost); totalReadCost += curReadCost; } else @@ -3863,7 +3863,7 @@ cost_type FileSprayer::updateSourceProperties() distributedSource->addAttrValue(getDFUQResultFieldName(DFUQRFnumDiskReads), totalNumReads); cost_type legacyReadCost = getLegacyReadCost(distributedSource->queryAttributes(), distributedSource); distributedSource->addAttrValue(getDFUQResultFieldName(DFUQRFreadCost), legacyReadCost + totalReadCost); - return totalReadCost; + return totalReadCost; // return the total cost of this file operation (exclude previous and legacy read costs) } return 0; }