Skip to content

Commit

Permalink
updated get_clock_count method to count unique clock indices
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilorzz committed Dec 14, 2023
1 parent 00f5cb3 commit 0b37d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model_objects/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ impl Declarations {
}

pub fn get_clock_count(&self) -> usize {
self.clocks.len()
self.clocks.values().collect::<HashSet<_>>().len()
}

pub fn set_clock_indices(&mut self, start_index: ClockIndex) {
Expand Down

0 comments on commit 0b37d9c

Please sign in to comment.