mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
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(fd_strace, &fds);
|
||||
|
||||
struct timeval tv;
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = 500;
|
||||
struct timeval tv = { .tv_sec = 0, .tv_usec = 500 };
|
||||
int ready = select(fd_strace + 1, &fds, NULL, NULL, &tv);
|
||||
|
||||
size_t nread = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user