Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit 77c2b64

Browse files
committed
Remove duplicated code
All the deliver stats now have eight values
1 parent c77d1fb commit 77c2b64

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/rabbit_mgmt_stats.erl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ append_full_sample(TS, {V1, V2, V3}, {S1, S2, S3}, {T1, T2, T3}) ->
115115
{V1 + T1, V2 + T2, V3 + T3}};
116116
%% channel_queue_stats_deliver_stats, queue_stats_deliver_stats,
117117
%% vhost_stats_deliver_stats, channel_stats_deliver_stats
118+
%% node_coarse_stats
118119
append_full_sample(TS, {V1, V2, V3, V4, V5, V6, V7, V8},
119120
{S1, S2, S3, S4, S5, S6, S7, S8},
120121
{T1, T2, T3, T4, T5, T6, T7, T8}) ->
@@ -127,15 +128,6 @@ append_full_sample(TS, {V1, V2, V3, V4, V5, V6, V7, V8},
127128
%% exchange_stats_publish_out, exchange_stats_publish_in, queue_process_stats
128129
append_full_sample(TS, {V1}, {S1}, {T1}) ->
129130
{{append_sample(V1, TS, S1)}, {V1 + T1}};
130-
%% node_coarse_stats
131-
append_full_sample(TS, {V1, V2, V3, V4, V5, V6, V7, V8},
132-
{S1, S2, S3, S4, S5, S6, S7, S8},
133-
{T1, T2, T3, T4, T5, T6, T7, T8}) ->
134-
{{append_sample(V1, TS, S1), append_sample(V2, TS, S2),
135-
append_sample(V3, TS, S3), append_sample(V4, TS, S4),
136-
append_sample(V5, TS, S5), append_sample(V6, TS, S6),
137-
append_sample(V7, TS, S7), append_sample(V8, TS, S8)},
138-
{V1 + T1, V2 + T2, V3 + T3, V4 + T4, V5 + T5, V6 + T6, V7 + T7, V8 + T8}};
139131
%% node_persister_stats
140132
append_full_sample(TS,
141133
{V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14,

0 commit comments

Comments
 (0)