Skip to content

Commit f74d33d

Browse files
author
Joshua Nelson
committed
Revert "metrics: fix docsrs_prioritized_crates_count (#810)"
This reverts commit a722f21.
1 parent a722f21 commit f74d33d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/web/metrics.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,9 @@ pub fn metrics_handler(req: &mut Request) -> IronResult<Response> {
124124
.get(0),
125125
);
126126
PRIORITIZED_CRATES_COUNT.set(
127-
ctry!(conn.query(
128-
"SELECT COUNT(*) FROM queue WHERE attempts < 5 AND priority <= 0;",
129-
&[]
130-
))
131-
.get(0)
132-
.get(0),
127+
ctry!(conn.query("SELECT COUNT(*) FROM queue WHERE priority >= 0;", &[]))
128+
.get(0)
129+
.get(0),
133130
);
134131
FAILED_CRATES_COUNT.set(
135132
ctry!(conn.query("SELECT COUNT(*) FROM queue WHERE attempt >= 5;", &[]))

0 commit comments

Comments
 (0)