Add time to log prefix

This commit is contained in:
2023-01-12 20:29:34 +01:00
parent f96dc46ea7
commit 2d250621c8
4 changed files with 27 additions and 8 deletions

@ -109,7 +109,7 @@ long sock_send(sock *s, void *buf, unsigned long len, int flags) {
long sock_send_x(sock *s, void *buf, unsigned long len, int flags) {
long sent = 0;
for (long ret; sent < len; sent += ret) {
ret = sock_send(s, buf + sent, len - sent, flags);
ret = sock_send(s, (unsigned char *) buf + sent, len - sent, flags);
if (ret <= 0)
return ret;
}