Skip to content

Commit

Permalink
Fix to low-res timer check
Browse files Browse the repository at this point in the history
Latest openwrt recognises the %N but returns nothing
  • Loading branch information
philwhineray committed Aug 19, 2018
1 parent aaa6552 commit 193b3ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/fireqos
Original file line number Diff line number Diff line change
Expand Up @@ -3278,7 +3278,7 @@ htb_stats() {
trap cleanup_stats EXIT
trap cleanup_stats SIGHUP

if [ `$DATE_CMD +%N` = "%N" ]
if [ "`$DATE_CMD +%N`" = "%N" -o "`$DATE_CMD +%N`" = "" ]
then
warning "System has low-res time, stats may be inaccurate"
FIREQOS_LOWRES_TIMER=1
Expand Down

0 comments on commit 193b3ed

Please sign in to comment.