Skip to content

Commit 0b6009e

Browse files
authored
Merge pull request #10 from stefanwimmer128/fix-running-count
Fix running count
2 parents 3ffd43d + 3f02de6 commit 0b6009e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/strategy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub struct WpQueueInfoPending {
1414
#[derive(Deserialize, Debug)]
1515
#[allow(dead_code)]
1616
pub struct WpQueueInfoRunning {
17-
id: String,
17+
agent_id: u32,
1818
labels: Labels,
1919
}
2020

@@ -84,7 +84,7 @@ impl Strategy {
8484
if let Some(running) = &queue_info.running {
8585
running_count = running
8686
.iter()
87-
.filter(|r| r.id == self.agent_id)
87+
.filter(|r| r.agent_id.to_string() == self.agent_id)
8888
.collect::<Vec<_>>()
8989
.len();
9090
}

0 commit comments

Comments
 (0)