mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 20:23:36 +08:00
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:
parent
20c1a21066
commit
87057128e6
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user