diff options
| author | onefang | 2025-12-03 04:24:50 +0100 |
|---|---|---|
| committer | onefang | 2025-12-03 04:24:50 +0100 |
| commit | 1fcc623228b3f7e7d56ad5529e9d77d44608e7d4 (patch) | |
| tree | ba651c9fe30f542dfac935589f22a7beef72d146 | |
| parent | More screwing with the output. (diff) | |
| download | devuan_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-x | devuan_package_mirror_sync.sh | 4 |
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)) | |||
| 94 | rsltM=$( 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 ) | 94 | rsltM=$( 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 ) |
| 95 | rsltC=$( echo "$rsltC" | grep -Ev '/$|\.svg|\.txt$|\.txt.old$|versionlog\.state|log/sources|aintainers$|/by-hash/' | head -n -3 | tail -n +2 ) | 95 | rsltC=$( echo "$rsltC" | grep -Ev '/$|\.svg|\.txt$|\.txt.old$|versionlog\.state|log/sources|aintainers$|/by-hash/' | head -n -3 | tail -n +2 ) |
| 96 | if [ -n "$rsltM" ] ; then echo -e "$rsltM\n"; fi | 96 | if [ -n "$rsltM" ] ; then echo -e "$rsltM\n"; fi |
| 97 | if [ $durationM -gt 3000 ] || [ -n "$rsltM" ] ; then echo -e "Main rsync time: $durationM ms.\n"; fi | 97 | if [ $durationM -gt 4000 ] || [ -n "$rsltM" ] ; then echo -e "Main rsync time: $durationM ms.\n"; fi |
| 98 | if [ -n "$rsltC" ] ; then echo -e "$rsltC\n"; fi | 98 | if [ -n "$rsltC" ] ; then echo -e "$rsltC\n"; fi |
| 99 | if [ $durationC -gt 2000 ] || [ -n "$rsltC" ] ; then echo -e "Clean up rsync time: $durationC ms.\n"; fi | 99 | if [ $durationC -gt 3000 ] || [ -n "$rsltC" ] ; then echo -e "Clean up rsync time: $durationC ms.\n"; fi |
