CVSROOT: /cvs Module name: src Changes by: s...@cvs.openbsd.org 2019/11/26 10:51:33
Modified files: usr.bin/tcpbench: tcpbench.c Log message: Prevent divide-by zero in tcpbench(1). Found while testing iwm(4). #0 0x000004c27b9051a9 in udp_process_slice (fd=<optimized out>, event=<optimized out>, v_sc=0x4c55279f500) at /usr/src/usr.bin/tcpbench/tcpbench.c:606 606 pps = (sc->udp_slice_pkts * 1000) / since_last; (gdb) p since_last $1 = 0 ok benno@