📄 discard exit execs
字号:
/* Obtain the incoming packet. */
pkptr = op_pk_get (op_intrpt_strm ());
/* Caclulate metrics to be updated. */
pk_size = (double) op_pk_total_size_get (pkptr);
ete_delay = op_sim_time () - op_pk_creation_time_get (pkptr);
/* Update local statistics. */
op_stat_write (bits_rcvd_stathandle, pk_size);
op_stat_write (pkts_rcvd_stathandle, 1.0);
op_stat_write (ete_delay_stathandle, ete_delay);
op_stat_write (bitssec_rcvd_stathandle, pk_size);
op_stat_write (bitssec_rcvd_stathandle, 0.0);
op_stat_write (pktssec_rcvd_stathandle, 1.0);
op_stat_write (pktssec_rcvd_stathandle, 0.0);
/* Update global statistics. */
op_stat_write (bits_rcvd_gstathandle, pk_size);
op_stat_write (pkts_rcvd_gstathandle, 1.0);
op_stat_write (ete_delay_gstathandle, ete_delay);
op_stat_write (bitssec_rcvd_gstathandle, pk_size);
op_stat_write (bitssec_rcvd_gstathandle, 0.0);
op_stat_write (pktssec_rcvd_gstathandle, 1.0);
op_stat_write (pktssec_rcvd_gstathandle, 0.0);
/* Destroy the received packet. */
//printf("Destroying the Packet in the sink\n");
op_pk_destroy (pkptr);
Cumulative_ETE_Delay = Cumulative_ETE_Delay + ete_delay;
Total_Number_Packets = Total_Number_Packets + 1;
//printf("ete_delay [%f] Cumulative ETE Delay [%f] \n", ete_delay,Cumulative_ETE_Delay);
//printf(" Total Packets [%d] Ave Delay [%f}\n\n", Total_Number_Packets, Cumulative_ETE_Delay/Total_Number_Packets);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -