termux-tools: pkg: fix bug where last_modified returned negative values
This commit is contained in:
parent
cf3236e9e8
commit
1e5ca4b743
@ -65,7 +65,7 @@ last_modified() {
|
||||
|
||||
mtime=$(date -r "$1" '+%s')
|
||||
now=$(date '+%s')
|
||||
echo $((mtime - now))
|
||||
echo $((now - mtime))
|
||||
}
|
||||
|
||||
select_mirror() {
|
||||
|
Loading…
Reference in New Issue
Block a user