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@gmail.com Signed-off-by: Simon Wunderlich siwu@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); }