diff --git a/root_file_system/default/etc/nodewatcher.sh b/root_file_system/default/etc/nodewatcher.sh
index b75df3f..095b490 100755
--- a/root_file_system/default/etc/nodewatcher.sh
+++ b/root_file_system/default/etc/nodewatcher.sh
@@ -271,6 +271,7 @@ crawl() {
IFS="
"
BAT_ADV_ORIGINATORS=`batctl o | awk '/O/ {next} /B/ {next} {print}'`
+ count=0;
for row in $BAT_ADV_ORIGINATORS; do
originator=`echo $row | awk '{print $1}'`
last_seen=`echo $row | awk '{print $2}'`
@@ -279,7 +280,8 @@ crawl() {
link_quality="${link_quality//(/}"
link_quality="${link_quality//)/}"
- batman_adv_originators=$batman_adv_originators"$originator$link_quality$last_seen"
+ batman_adv_originators=$batman_adv_originators"$originator$link_quality$last_seen"
+ count=$[$count+1]
done
IFS=$OLDIFS
fi