Bugfix: print out the correct total idle transmit and listen time

This commit is contained in:
Adam Dunkels 2011-05-08 22:25:20 +02:00
parent 0a2b86456b
commit ade10623de

View File

@ -90,8 +90,8 @@ powertrace_print(char *str)
all_lpm = energest_type_time(ENERGEST_TYPE_LPM); all_lpm = energest_type_time(ENERGEST_TYPE_LPM);
all_transmit = energest_type_time(ENERGEST_TYPE_TRANSMIT); all_transmit = energest_type_time(ENERGEST_TYPE_TRANSMIT);
all_listen = energest_type_time(ENERGEST_TYPE_LISTEN); all_listen = energest_type_time(ENERGEST_TYPE_LISTEN);
all_idle_transmit = compower_idle_activity.transmit - last_idle_transmit; all_idle_transmit = compower_idle_activity.transmit;
all_idle_listen = compower_idle_activity.listen - last_idle_listen; all_idle_listen = compower_idle_activity.listen;
cpu = all_cpu - last_cpu; cpu = all_cpu - last_cpu;
lpm = all_lpm - last_lpm; lpm = all_lpm - last_lpm;
@ -267,7 +267,7 @@ input_sniffer(void)
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static void static void
output_sniffer(void) output_sniffer(int mac_status)
{ {
add_packet_stats(OUTPUT); add_packet_stats(OUTPUT);
} }