From cbfc627d178c43127427a143d634476bbd4181c8 Mon Sep 17 00:00:00 2001 From: "C. Guy Yarvin" Date: Mon, 31 Oct 2016 14:08:36 -0700 Subject: [PATCH] Don't print czar ip unless it changes. --- vere/ames.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vere/ames.c b/vere/ames.c index 72d08e21ee..acdb3a674a 100644 --- a/vere/ames.c +++ b/vere/ames.c @@ -95,11 +95,12 @@ _ames_czar(c3_y imp_y, c3_s* por_s) } if ( (AF_INET == rai_u->ai_family) ) { struct sockaddr_in* add_u = (struct sockaddr_in *)rai_u->ai_addr; + c3_w old_w = sam_u->imp_w[imp_y]; sam_u->imp_w[imp_y] = ntohl(add_u->sin_addr.s_addr); sam_u->imp_t[imp_y] = now; #if 1 - { + if ( sam_u->imp_w[imp_y] != old_w ) { u3_noun wad = u3i_words(1, &sam_u->imp_w[imp_y]); u3_noun nam = u3dc("scot", c3__if, wad); c3_c* nam_c = u3r_string(nam);