[commits] r1617 - trunk/batctl

postmaster at open-mesh.net postmaster at open-mesh.net
Mon Apr 5 00:19:00 CEST 2010


Author: simon
Date: 2010-04-05 00:18:50 +0200 (Mon, 05 Apr 2010)
New Revision: 1617

Modified:
   trunk/batctl/vis.c
Log:
batctl: fix frac part of vis TQ output

Reported-by: Nathan Wharton <nwharton at gmail.com>
Signed-off-by: Simon Wunderlich <siwu at hrz.tu-chemnitz.de>


Modified: trunk/batctl/vis.c
===================================================================
--- trunk/batctl/vis.c	2010-04-04 16:32:27 UTC (rev 1616)
+++ trunk/batctl/vis.c	2010-04-04 22:18:50 UTC (rev 1617)
@@ -67,7 +67,7 @@
 
 	printf("\t\"%s\" -> ",
 	       get_name_by_macstr(orig, (with_names ? USE_BAT_HOSTS : 0)));
-	printf("\"%s\" [label=\"%d.%d\"]\n",
+	printf("\"%s\" [label=\"%d.%03d\"]\n",
 	       get_name_by_macstr(from, (with_names ? USE_BAT_HOSTS : 0)),
 	       int_part, frac_part);
 }
@@ -125,7 +125,7 @@
 
 	printf("\t{ router : \"%s\", ",
 	       get_name_by_macstr(orig, (with_names ? USE_BAT_HOSTS : 0)));
-	printf("neighbor : \"%s\", label : \"%d.%d\" }\n",
+	printf("neighbor : \"%s\", label : \"%d.%03d\" }\n",
 	       get_name_by_macstr(from, (with_names ? USE_BAT_HOSTS : 0)),
 	       int_part, frac_part);
 }



More information about the commits mailing list