Changeset 5dfeb4c in code


Ignore:
Timestamp:
Apr 22, 2015, 5:28:42 PM (10 years ago)
Author:
Mike Belopuhov <mike@…>
Branches:
master
Children:
677a45b
Parents:
cba908b
Message:

move invariant out of the loop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icb.c

    rcba908b r5dfeb4c  
    486486        char buf[ICB_MSGSIZE - 10]; /* truncate to make sure all fits */
    487487        struct icb_session *s;
     488        time_t now;
    488489        int nusers = 0;
    489490
     491        now = getmonotime();
    490492        icb_cmdout(is, CMDOUT_CO, " ");
    491493        snprintf(buf, sizeof buf, "Group: %-8s (%cvl) Mod: %-13s Topic: %s",
     
    497499                    "%c%c%s%c%lld%c0%c%lld%c%s%c%s%c%s",
    498500                    icb_ismod(ig, s) ? 'm' : ' ', ICB_M_SEP,
    499                     s->nick, ICB_M_SEP, getmonotime() - s->last,
     501                    s->nick, ICB_M_SEP, now - s->last,
    500502                    ICB_M_SEP, ICB_M_SEP, s->login, ICB_M_SEP,
    501503                    s->client, ICB_M_SEP, s->host, ICB_M_SEP, " ");
Note: See TracChangeset for help on using the changeset viewer.