Statistics
| Branch: | Revision:

grapes / src / Tests / count.sh @ 7b60aa43

History | View | Annotate | Download (220 Bytes)

1
NUM_PEERS=20
2
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