termux-tools: pkg: fix bug where last_modified returned negative values

This commit is contained in:
Leonid Pliushch 2021-05-19 14:32:58 +03:00
parent cf3236e9e8
commit 1e5ca4b743
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ last_modified() {
mtime=$(date -r "$1" '+%s')
now=$(date '+%s')
echo $((mtime - now))
echo $((now - mtime))
}
select_mirror() {