Statistics
| Branch: | Revision:

grapes / src / Tests / count.sh @ ccf0be64

History | View | Annotate | Download (220 Bytes)

1 1aa763ee Luca
NUM_PEERS=20
2 fa213294 Luca
PEER_PORT_BASE=5555
3
((PEER_PORT_MAX=PEER_PORT_BASE + NUM_PEERS - 1))
4
5
6
function cnt {
7
  echo -n "$1 "; grep ":$1" n-*.txt | wc -l
8
}
9
10
for PORT in `seq $PEER_PORT_BASE 1 $PEER_PORT_MAX`;
11
 do
12
  cnt $PORT
13
 done