mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
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.
|
* 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) {
|
if(tc->rtmetric == RTMETRIC_MAX) {
|
||||||
strcpy(buf, " ");
|
strcpy(buf, " ");
|
||||||
} else {
|
} else {
|
||||||
sprintf(buf, "%d", tc->rtmetric);
|
sprintf(buf, "%.1f", (float)tc->rtmetric / NEIGHBOR_ETX_SCALE);
|
||||||
}
|
}
|
||||||
ether_set_text(buf);
|
ether_set_text(buf);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user