aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Reed <[email protected]>2012-03-16 15:40:16 -0700
committerLukas Larsson <[email protected]>2012-07-18 16:51:45 +0200
commit4ba364c5df2c574974fb3ec10fe03f2e6ad4f92f (patch)
tree4ce3413ffac24d2a0afe57fed33750c76d038b69
parent13fb710888b866830b673d019485ad58756fd23f (diff)
downloadotp-4ba364c5df2c574974fb3ec10fe03f2e6ad4f92f.tar.gz
otp-4ba364c5df2c574974fb3ec10fe03f2e6ad4f92f.tar.bz2
otp-4ba364c5df2c574974fb3ec10fe03f2e6ad4f92f.zip
Fix missing accounting for outbound distribution bytes.
-rw-r--r--erts/emulator/beam/dist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/dist.c b/erts/emulator/beam/dist.c
index 300c2b708f..5db68f6d45 100644
--- a/erts/emulator/beam/dist.c
+++ b/erts/emulator/beam/dist.c
@@ -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;
@@ -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;