timesyncd: rename bool 'good' → 'talking'

THe name is just too generic. Let's pick a name that makes clear that
this is about successful communication.
This commit is contained in:
Lennart Poettering 2022-03-18 16:57:56 +01:00
parent 20c1a21066
commit 87057128e6
2 changed files with 4 additions and 4 deletions

View File

@ -593,10 +593,10 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re
"NTPMessage",
NULL);
if (!m->good) {
if (!m->talking) {
_cleanup_free_ char *pretty = NULL;
m->good = true;
m->talking = true;
(void) server_address_pretty(m->current_server_address, &pretty);
@ -659,7 +659,7 @@ static int manager_begin(Manager *m) {
assert_return(m->current_server_name, -EHOSTUNREACH);
assert_return(m->current_server_address, -EHOSTUNREACH);
m->good = false;
m->talking = false;
m->missed_replies = NTP_MAX_MISSED_REPLIES;
if (m->poll_interval_usec == 0)
m->poll_interval_usec = m->poll_interval_min_usec;

View File

@ -61,7 +61,7 @@ struct Manager {
int missed_replies;
uint64_t packet_count;
sd_event_source *event_timeout;
bool good;
bool talking;
/* last sent packet */
struct timespec trans_time_mon;