Show rt metric in netsim as number of expected transmissions
This commit is contained in:
parent
cdfe030980
commit
49ac5f9026
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue