Skip to content

Commit

Permalink
rsc: Fix dashboard for jobs with no file outputs (#1622)
Browse files Browse the repository at this point in the history
  • Loading branch information
V-FEXrt authored Aug 5, 2024
1 parent d46a0c6 commit 82f8e26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/rsc/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ pub async fn most_space_efficient_jobs<T: ConnectionTrait>(
j.size as disk_usage,
CAST(round(j.runtime / (j.size) * 1000000000) as BIGINT) as ns_saved_per_byte
FROM job j
WHERE size IS NOT NULL
WHERE size IS NOT NULL AND size > 0
ORDER BY ns_saved_per_byte DESC
LIMIT 30;
"#,
Expand All @@ -431,7 +431,7 @@ pub async fn most_space_use_jobs<T: ConnectionTrait>(
j.size as disk_usage,
CAST(round(j.runtime / (j.size) * 1000000000) as BIGINT) as ns_saved_per_byte
FROM job j
WHERE size IS NOT NULL
WHERE size IS NOT NULL AND size > 0
ORDER BY disk_usage DESC
LIMIT 30;
"#,
Expand Down

0 comments on commit 82f8e26

Please sign in to comment.