mirror of https://github.com/xzeldon/htop.git
Shorten initializer
This commit is contained in:
parent
1c060a9d6b
commit
cb8bb12974
|
@ -143,9 +143,7 @@ void TraceScreen_updateTrace(InfoScreen* super) {
|
||||||
// FD_SET(STDIN_FILENO, &fds);
|
// FD_SET(STDIN_FILENO, &fds);
|
||||||
FD_SET(fd_strace, &fds);
|
FD_SET(fd_strace, &fds);
|
||||||
|
|
||||||
struct timeval tv;
|
struct timeval tv = { .tv_sec = 0, .tv_usec = 500 };
|
||||||
tv.tv_sec = 0;
|
|
||||||
tv.tv_usec = 500;
|
|
||||||
int ready = select(fd_strace + 1, &fds, NULL, NULL, &tv);
|
int ready = select(fd_strace + 1, &fds, NULL, NULL, &tv);
|
||||||
|
|
||||||
size_t nread = 0;
|
size_t nread = 0;
|
||||||
|
|
Loading…
Reference in New Issue