From 49ac5f9026ef2d32daff62f8f5d016f8c1bdac25 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Thu, 24 Jan 2008 21:11:40 +0000 Subject: [PATCH] Show rt metric in netsim as number of expected transmissions --- core/net/rime/collect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/net/rime/collect.c b/core/net/rime/collect.c index 4e2f7f8bd..5ee3a45e3 100644 --- a/core/net/rime/collect.c +++ b/core/net/rime/collect.c @@ -36,7 +36,7 @@ * * This file is part of the Contiki operating system. * - * $Id: collect.c,v 1.4 2008/01/08 07:54:40 adamdunkels Exp $ + * $Id: collect.c,v 1.5 2008/01/24 21:11:40 adamdunkels Exp $ */ /** @@ -138,7 +138,7 @@ update_rtmetric(struct collect_conn *tc) if(tc->rtmetric == RTMETRIC_MAX) { strcpy(buf, " "); } else { - sprintf(buf, "%d", tc->rtmetric); + sprintf(buf, "%.1f", (float)tc->rtmetric / NEIGHBOR_ETX_SCALE); } ether_set_text(buf); }