From 5c8c7f88ceb70a29d6f4f323939240ac9f078463 Mon Sep 17 00:00:00 2001 From: Niraj Yadav Date: Thu, 14 Nov 2024 16:57:30 +0530 Subject: [PATCH] Fix collection time The patch modifies the collection time to not include the time taken by the preinstall script. Closes: #136 Signed-off-by: Niraj Yadav --- collection-scripts/gather | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/collection-scripts/gather b/collection-scripts/gather index d40356f..3afc9f1 100755 --- a/collection-scripts/gather +++ b/collection-scripts/gather @@ -127,11 +127,6 @@ mkdir -p ${BASE_COLLECTION_PATH} # Parse the ENV for collection filters parse_since_time -# timestamp for starting of the script -START_TIME=$(date +%r) -start=$(date +%s) -dbglog "collection started at: ${START_TIME}" - # Print and export must-gather pod details export_pod_image_details @@ -142,6 +137,11 @@ fi # Call pre-install.sh, see commit msg pre-install.sh ${BASE_COLLECTION_PATH} +# timestamp for starting of the script +START_TIME=$(date +%r) +start=$(date +%s) +dbglog "collection started at: ${START_TIME}" + # Process the options if [ "$odf" == true ]; then echo "Collect ODF logs..."