Show rt metric in netsim as number of expected transmissions

This commit is contained in:
adamdunkels 2008-01-24 21:11:40 +00:00
parent cdfe030980
commit 49ac5f9026
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}