Fix buffer here too
This commit is contained in:
parent
b6e31d7bdc
commit
c54304134b
2 changed files with 2 additions and 0 deletions
|
@ -202,6 +202,7 @@ void register_timer(struct evt_core_ctx* evts, int udp, int interval, int count,
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
|
setvbuf(stdout, NULL, _IONBF, 0);
|
||||||
printf("~ measlat ~\n");
|
printf("~ measlat ~\n");
|
||||||
|
|
||||||
int opt, udp_fd, count = 0, size = 0, interval = 0;
|
int opt, udp_fd, count = 0, size = 0, interval = 0;
|
||||||
|
|
|
@ -30,6 +30,7 @@ int on_udp(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
|
setvbuf(stdout, NULL, _IONBF, 0);
|
||||||
printf("~ udpecho ~\n");
|
printf("~ udpecho ~\n");
|
||||||
|
|
||||||
int opt, udp_sock, verbose = 0;
|
int opt, udp_sock, verbose = 0;
|
||||||
|
|
Loading…
Reference in a new issue