From 78ab0179905ccd06c2fd6caa0f8c662d81bcc2ca Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 9 Jun 2011 20:54:07 -0300 Subject: [PATCH] tools/atrf-proxy/atrf-proxy.c (cmd_zero): reduce poll delay from 100 ms to 2 ms The overly generous delay has the effect of encouraging dubious optimizations elsewhere. Not a good idea. --- tools/atrf-proxy/atrf-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/atrf-proxy/atrf-proxy.c b/tools/atrf-proxy/atrf-proxy.c index 4ba5ea0..c1e9606 100644 --- a/tools/atrf-proxy/atrf-proxy.c +++ b/tools/atrf-proxy/atrf-proxy.c @@ -224,7 +224,7 @@ static int cmd_zero(struct atrf_dsc *dsc, struct netio *netio, const char *cmd) if (res < 0) return netio_printf(netio, "-I/O error\n"); if (!res) - usleep(100*1000); + usleep(2*1000); return netio_printf(netio, "+%d\n", res); } return netio_printf(netio, "-unrecognized command\n");