Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2526

Raspberry Pi OS • Bash $SECONDS not working on Pi 4

$
0
0

Code:

ASTART=$SECONDS   ... Do stuff for a few seconds, 5 or 10 or 900 seconds in one case.echo "$(( $SECONDS - $ASTART )) seconds."
The result in a script is correct on my Pi 5 and Pi Zero 2 but is a huge number, something like 688000, on my Pi 4.

I am using Bookworm with all updates applied. Same card. Same script. The script has worked on the Pi 4 but today, it fails every time. :x

Statistics: Posted by peterlite — Tue Jul 16, 2024 3:30 am



Viewing all articles
Browse latest Browse all 2526

Trending Articles