]> git.openstreetmap.org Git - nominatim.git/commitdiff
sort block map before computing munin stats
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 12 Dec 2014 23:22:53 +0000 (00:22 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 12 Dec 2014 23:22:53 +0000 (00:22 +0100)
munin/nominatim_throttled_ips

index 2fa1d80efe2344ef9df37381b61ead1b71222952..cdfc88df654b81b0f013494fa2b766abfa671441 100755 (executable)
@@ -25,4 +25,4 @@ fi
  
 BASEDIR="$(dirname "$(readlink -f "$0")")"
 
  
 BASEDIR="$(dirname "$(readlink -f "$0")")"
 
-cut -f 2 -d ' ' $BASEDIR/../settings/ip_blocks.map | uniq -c | sed 's:[[:space:]]*\([0-9]\+\) \(.*\):\2.value \1:'
+cut -f 2 -d ' ' $BASEDIR/../settings/ip_blocks.map | sort | uniq -c | sed 's:[[:space:]]*\([0-9]\+\) \(.*\):\2.value \1:'