Skip to content

Commit

Permalink
Fix missing accounting for outbound distribution bytes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Reed authored and garazdawi committed Jul 18, 2012
1 parent 13fb710 commit 4ba364c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erts/emulator/beam/dist.c
Original file line number Diff line number Diff line change
Expand Up @@ -1969,6 +1969,7 @@ erts_dist_command(Port *prt, int reds_limit)
bw(foq.first->extp, size);
#endif
reds += ERTS_PORT_REDS_DIST_CMD_DATA(size);
erts_smp_atomic_add_nob(&erts_bytes_out, size);
fob = foq.first;
obufsize += size_obuf(fob);
foq.first = foq.first->next;
Expand Down Expand Up @@ -2052,6 +2053,7 @@ erts_dist_command(Port *prt, int reds_limit)
bw(oq.first->extp, size);
#endif
reds += ERTS_PORT_REDS_DIST_CMD_DATA(size);
erts_smp_atomic_add_nob(&erts_bytes_out, size);
fob = oq.first;
obufsize += size_obuf(fob);
oq.first = oq.first->next;
Expand Down

0 comments on commit 4ba364c

Please sign in to comment.