Skip to content

Commit

Permalink
Minor fixes after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Oct 26, 2021
1 parent e4d4d51 commit e85c4ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion big_tests/tests/service_mongoose_system_metrics_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ events_are_reported_to_both_tracking_ids() ->

primary_tracking_id() ->
case os:getenv("CI") of
"true" ->?TRACKING_ID_CI;
"true" -> ?TRACKING_ID_CI;
_ -> ?TRACKING_ID
end.

Expand Down
8 changes: 6 additions & 2 deletions src/system_metrics/service_mongoose_system_metrics.erl
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@

-ignore_xref([start_link/1]).

-record(system_metrics_state, {report_after, reporter_monitor = none,
reporter_pid = none, prev_report = [], tracking_ids}).
-record(system_metrics_state,
{report_after :: non_neg_integer(),
reporter_monitor = none :: none | reference(),
reporter_pid = none :: none | pid(),
prev_report = [] :: [mongoose_system_metrics_collector:report_struct()],
tracking_ids :: [tracking_id()]}).

-type system_metrics_state() :: #system_metrics_state{}.
-type client_id() :: string().
Expand Down

0 comments on commit e85c4ea

Please sign in to comment.