Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
feymartynov committed Oct 8, 2020
1 parent f797bbf commit f2b841a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/janus_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ const MOST_LOADED_SQL: &str = r#"
LEFT JOIN room AS r2
ON 1 = 1
WHERE r2.id = $1
AND COALESCE(jb.balancer_capacity, jb.capacity, 2147483647) - COALESCE(jbl.load, 0) > COALESCE(r2.reserve, 0)
AND COALESCE(jb.balancer_capacity, jb.capacity, 2147483647) - COALESCE(jbl.load, 0) >= COALESCE(r2.reserve, 0)
ORDER BY COALESCE(jbl.load, 0) DESC
LIMIT 1
"#;
Expand Down

0 comments on commit f2b841a

Please sign in to comment.