Skip to content

Commit

Permalink
Fix timing calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
janaknat committed Jul 31, 2023
1 parent ab79cb1 commit 2009bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl PerformanceData {
error!("Missed {} interval(s)", ret - 1);
}
debug!("Time elapsed: {:?}", start.elapsed());
current += time::Duration::from_secs(ret);
current += time::Duration::from_secs(ret * self.init_params.interval);
for (_name, datatype) in self.collectors.iter_mut() {
if datatype.is_static {
continue;
Expand Down

0 comments on commit 2009bcc

Please sign in to comment.