mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fixed whitespace
This commit is contained in:
parent
1b526a5d59
commit
d1ad5b78b6
1 changed files with 4 additions and 4 deletions
|
@ -188,7 +188,7 @@ int socket_read(struct node *n, struct msg *pool, int poolsize, int first, int c
|
|||
error("Remote node '%s' closed the connection", n->name);
|
||||
else if (bytes < 0)
|
||||
serror("Failed recv");
|
||||
|
||||
|
||||
debug(10, "Received packet of %u bytes: %u samples a %u values per sample", bytes, cnt, (bytes / cnt) / 4 - 4);
|
||||
|
||||
for (int i = 0; i < cnt; i++) {
|
||||
|
@ -216,8 +216,8 @@ int socket_write(struct node *n, struct msg *pool, int poolsize, int first, int
|
|||
{
|
||||
struct socket *s = n->socket;
|
||||
int bytes, sent = 0;
|
||||
|
||||
@todo: we should check the MTU
|
||||
|
||||
/** @todo we should check the MTU */
|
||||
|
||||
struct iovec iov[cnt];
|
||||
for (int i = 0; i < cnt; i++) {
|
||||
|
@ -253,7 +253,7 @@ int socket_write(struct node *n, struct msg *pool, int poolsize, int first, int
|
|||
bytes = sendmsg(s->sd, &mhdr, 0);
|
||||
if (bytes < 0)
|
||||
serror("Failed send");
|
||||
|
||||
|
||||
debug(10, "Sent packet of %u bytes: %u samples a %u values per sample", bytes, cnt, (bytes / cnt) / 4 - 4);
|
||||
|
||||
return sent;
|
||||
|
|
Loading…
Add table
Reference in a new issue