diff options
author | Philip Balister <philip@opensdr.com> | 2010-04-27 08:17:46 +0000 |
---|---|---|
committer | Philip Balister <philip@opensdr.com> | 2010-04-27 08:17:46 +0000 |
commit | 7953156249776ce7d45bb2a24c8ac88edb644c64 (patch) | |
tree | e8bdc80574dd473faa709b77a8941a40af76228b | |
parent | f5b6776a0b642c0357fbecdead9d2b1ac6ece3d3 (diff) | |
download | uhd-7953156249776ce7d45bb2a24c8ac88edb644c64.tar.gz uhd-7953156249776ce7d45bb2a24c8ac88edb644c64.tar.bz2 uhd-7953156249776ce7d45bb2a24c8ac88edb644c64.zip |
Send only required number of bytes. Do it for longer.
-rw-r--r-- | host/apps/omap_debug/usrp-e-rw-random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/apps/omap_debug/usrp-e-rw-random.c b/host/apps/omap_debug/usrp-e-rw-random.c index 67d6ca803..c6a838067 100644 --- a/host/apps/omap_debug/usrp-e-rw-random.c +++ b/host/apps/omap_debug/usrp-e-rw-random.c @@ -114,7 +114,7 @@ static void *write_thread(void *threadid) p->len = randN(1013) + 1; p->checksum = calc_checksum(p); tx_data->len = 12 + p->len * 2; - cnt = write(fp, tx_data, 2048); + cnt = write(fp, tx_data, tx_data->len + 8); } sleep(random() >> 31); } @@ -141,7 +141,7 @@ int main(int argc, char *argv[]) exit(-1); } - sleep(10000); + sleep(1000000000); printf("Done sleeping\n"); } |