aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoronefang2025-12-03 04:24:50 +0100
committeronefang2025-12-03 04:24:50 +0100
commit1fcc623228b3f7e7d56ad5529e9d77d44608e7d4 (patch)
treeba651c9fe30f542dfac935589f22a7beef72d146
parentMore screwing with the output. (diff)
downloaddevuan_package_mirror_sync-1fcc623228b3f7e7d56ad5529e9d77d44608e7d4.zip
devuan_package_mirror_sync-1fcc623228b3f7e7d56ad5529e9d77d44608e7d4.tar.gz
devuan_package_mirror_sync-1fcc623228b3f7e7d56ad5529e9d77d44608e7d4.tar.bz2
devuan_package_mirror_sync-1fcc623228b3f7e7d56ad5529e9d77d44608e7d4.tar.xz
Tweak the time tests.
-rwxr-xr-xdevuan_package_mirror_sync.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/devuan_package_mirror_sync.sh b/devuan_package_mirror_sync.sh
index bb8fa66..0f6ff3e 100755
--- a/devuan_package_mirror_sync.sh
+++ b/devuan_package_mirror_sync.sh
@@ -94,6 +94,6 @@ end_time=$(date +%s%3N) ; durationC=$((end_time - start_time))
94rsltM=$( echo "$rsltM" | grep -Ev '/$|\.svg|\.txt$|\.txt.old$|versionlog\.state|log/sources|aintainers$|/by-hash/|skipping non-regular file' | head -n -4 | tail -n +2 ) 94rsltM=$( echo "$rsltM" | grep -Ev '/$|\.svg|\.txt$|\.txt.old$|versionlog\.state|log/sources|aintainers$|/by-hash/|skipping non-regular file' | head -n -4 | tail -n +2 )
95rsltC=$( echo "$rsltC" | grep -Ev '/$|\.svg|\.txt$|\.txt.old$|versionlog\.state|log/sources|aintainers$|/by-hash/' | head -n -3 | tail -n +2 ) 95rsltC=$( echo "$rsltC" | grep -Ev '/$|\.svg|\.txt$|\.txt.old$|versionlog\.state|log/sources|aintainers$|/by-hash/' | head -n -3 | tail -n +2 )
96if [ -n "$rsltM" ] ; then echo -e "$rsltM\n"; fi 96if [ -n "$rsltM" ] ; then echo -e "$rsltM\n"; fi
97if [ $durationM -gt 3000 ] || [ -n "$rsltM" ] ; then echo -e "Main rsync time: $durationM ms.\n"; fi 97if [ $durationM -gt 4000 ] || [ -n "$rsltM" ] ; then echo -e "Main rsync time: $durationM ms.\n"; fi
98if [ -n "$rsltC" ] ; then echo -e "$rsltC\n"; fi 98if [ -n "$rsltC" ] ; then echo -e "$rsltC\n"; fi
99if [ $durationC -gt 2000 ] || [ -n "$rsltC" ] ; then echo -e "Clean up rsync time: $durationC ms.\n"; fi 99if [ $durationC -gt 3000 ] || [ -n "$rsltC" ] ; then echo -e "Clean up rsync time: $durationC ms.\n"; fi