diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-04-27 13:29:06 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-04-27 13:29:06 +0000 |
commit | f6eef5e44e099e73d1666f8b0dfcf966503afba4 (patch) | |
tree | dc1249eabcb1020742d58cab9e9238990dbe4c51 /src/transport/plugin_transport_unix.c | |
parent | a689f1c66d2663ab1f3e6ec6347707612908d25c (diff) | |
download | gnunet-f6eef5e44e099e73d1666f8b0dfcf966503afba4.tar.gz gnunet-f6eef5e44e099e73d1666f8b0dfcf966503afba4.zip |
- fix
Diffstat (limited to 'src/transport/plugin_transport_unix.c')
-rw-r--r-- | src/transport/plugin_transport_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 0d5a84528..9027c2773 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c | |||
@@ -803,7 +803,7 @@ unix_plugin_select_write (struct Plugin * plugin) | |||
803 | { | 803 | { |
804 | GNUNET_CONTAINER_DLL_remove(plugin->msg_head, plugin->msg_tail, msgw); | 804 | GNUNET_CONTAINER_DLL_remove(plugin->msg_head, plugin->msg_tail, msgw); |
805 | 805 | ||
806 | GNUNET_assert (plugin->bytes_in_queue > msgw->msgsize); | 806 | GNUNET_assert (plugin->bytes_in_queue >= msgw->msgsize); |
807 | plugin->bytes_in_queue -= msgw->msgsize; | 807 | plugin->bytes_in_queue -= msgw->msgsize; |
808 | GNUNET_STATISTICS_set (plugin->env->stats,"# UNIX bytes in send queue", | 808 | GNUNET_STATISTICS_set (plugin->env->stats,"# UNIX bytes in send queue", |
809 | plugin->bytes_in_queue, GNUNET_NO); | 809 | plugin->bytes_in_queue, GNUNET_NO); |
@@ -818,7 +818,7 @@ unix_plugin_select_write (struct Plugin * plugin) | |||
818 | { | 818 | { |
819 | GNUNET_CONTAINER_DLL_remove(plugin->msg_head, plugin->msg_tail, msgw); | 819 | GNUNET_CONTAINER_DLL_remove(plugin->msg_head, plugin->msg_tail, msgw); |
820 | 820 | ||
821 | GNUNET_assert (plugin->bytes_in_queue > msgw->msgsize); | 821 | GNUNET_assert (plugin->bytes_in_queue >= msgw->msgsize); |
822 | plugin->bytes_in_queue -= msgw->msgsize; | 822 | plugin->bytes_in_queue -= msgw->msgsize; |
823 | GNUNET_STATISTICS_set (plugin->env->stats,"# UNIX bytes in send queue", | 823 | GNUNET_STATISTICS_set (plugin->env->stats,"# UNIX bytes in send queue", |
824 | plugin->bytes_in_queue, GNUNET_NO); | 824 | plugin->bytes_in_queue, GNUNET_NO); |