Fix previous commit
This commit is contained in:
parent
e2c3dcd906
commit
dd1c494fe8
|
|
@ -35,9 +35,7 @@ int tpm_pay(void* fc, uint8_t* neighbour) {
|
||||||
tolling_s* tolling = (tolling_s*) &facilities->tolling;
|
tolling_s* tolling = (tolling_s*) &facilities->tolling;
|
||||||
|
|
||||||
pthread_mutex_lock(&facilities->epv.time.lock);
|
pthread_mutex_lock(&facilities->epv.time.lock);
|
||||||
facilities->epv.time.resolution = TIME_MICROSECONDS;
|
tolling->tz = it2s_tender_get_now(TIME_MICROSECONDS) ;
|
||||||
tolling->tz = it2s_tender_get_time(&facilities->epv) ;
|
|
||||||
facilities->epv.time.resolution = TIME_MILLISECONDS;
|
|
||||||
pthread_mutex_unlock(&facilities->epv.time.lock);
|
pthread_mutex_unlock(&facilities->epv.time.lock);
|
||||||
|
|
||||||
TransportRequest_t* tr = NULL;
|
TransportRequest_t* tr = NULL;
|
||||||
|
|
@ -474,9 +472,7 @@ int tpm_recv(void* fc, TPM_t* tpm_rx, uint8_t* neighbour) {
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
pthread_mutex_lock(&facilities->epv.time.lock);
|
pthread_mutex_lock(&facilities->epv.time.lock);
|
||||||
facilities->epv.time.resolution = TIME_MICROSECONDS;
|
syslog_info("[facilities] [tolling] reply took %ld us", it2s_tender_get_now(TIME_MICROSECONDS) - tolling->tz);
|
||||||
syslog_info("[facilities] [tolling] reply took %ld us", it2s_tender_get_time(&facilities->epv) - tolling->tz);
|
|
||||||
facilities->epv.time.resolution = TIME_MILLISECONDS;
|
|
||||||
pthread_mutex_unlock(&facilities->epv.time.lock);
|
pthread_mutex_unlock(&facilities->epv.time.lock);
|
||||||
veh_handle_recv(tolling, tpm_rx, neighbour);
|
veh_handle_recv(tolling, tpm_rx, neighbour);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue