Author: simon Date: 2010-04-05 00:19:50 +0200 (Mon, 05 Apr 2010) New Revision: 1618
Modified: branches/batctl-0.2.x/vis.c Log: batctl-0.2.x: 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: branches/batctl-0.2.x/vis.c =================================================================== --- branches/batctl-0.2.x/vis.c 2010-04-04 22:18:50 UTC (rev 1617) +++ branches/batctl-0.2.x/vis.c 2010-04-04 22:19:50 UTC (rev 1618) @@ -69,7 +69,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); } @@ -127,7 +127,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); }