Browse files

compute_time_listings MINID query: order by date

  • Loading branch information...
1 parent 2b83094 commit 7b24dacd77ae2b9a591bf6d582f76a19ea4bc6c9 @Deimos Deimos committed with spladug Feb 13, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/compute_time_listings
View
2 scripts/compute_time_listings
@@ -75,7 +75,7 @@ MINID=$(run_query "SELECT thing_id
WHERE
date > now() - interval '1 $INTERVAL' AND
date < now()
- ORDER BY thing_id
+ ORDER BY date
LIMIT 1")
if [ -z $MINID ]; then
echo \$MINID is empty. Replication is likely behind.

0 comments on commit 7b24dac

Please sign in to comment.