Skip to content

Commit

Permalink
exit: Serialize the right value (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 authored Apr 5, 2023
1 parent 8e022bf commit 6c712e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metrics/exit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl Serialize for Stats {
S: Serializer,
{
let mut st = serializer.serialize_struct("nexits", 4)?;
st.serialize_field("sum", &self.exit())?;
st.serialize_field("sum", &self.exit_sum())?;
st.serialize_field("average", &self.exit_average())?;
st.serialize_field("min", &self.exit_min())?;
st.serialize_field("max", &self.exit_max())?;
Expand Down

0 comments on commit 6c712e8

Please sign in to comment.