ib-diags: fix portnum being off by 1