Home
last modified time | relevance | path

Searched refs:this_status (Results 1 – 1 of 1) sorted by relevance

/babblesim_ext_2G4_channel_multiatt-latest/src/
Dchannel_multiatt.c177 static double att_from_file(file_status_t *this_status, bs_time_t now, uint index) { in att_from_file() argument
194 while (now >= this_status->next_time){ in att_from_file()
199 this_status->last_time = this_status->next_time; in att_from_file()
200 this_status->last_att = this_status->next_att; in att_from_file()
202 read = att_readline(line_buf, MAXLINESIZE, this_status->fileptr); in att_from_file()
206 read = sscanf(line_buf, "%"SCNtime" %le", &this_status->next_time , &this_status->next_att); in att_from_file()
211 bs_trace_error_line("file %s seems corrupted\n",this_status->filename); in att_from_file()
215 channel_status.paths_att[index] = this_status->last_att + channel_status.atxtra; in att_from_file()
221 if (now <= this_status->last_time) { in att_from_file()
222 return this_status->last_att + channel_status.atxtra; in att_from_file()
[all …]