Lines Matching defs:h2
242 hscmp(struct hs *h1, struct hs *h2)
245 return (rflg * strcmp(h1->hs_wd->wd_hostname, h2->hs_wd->wd_hostname));
252 lcmp(struct hs *h1, struct hs *h2)
256 if (down(h2))
257 return (tcmp(h1, h2));
260 else if (down(h2))
264 (h2->hs_wd->wd_loadav[0] - h1->hs_wd->wd_loadav[0]));
271 ucmp(struct hs *h1, struct hs *h2)
275 if (down(h2))
276 return (tcmp(h1, h2));
279 else if (down(h2))
282 return (rflg * (h2->hs_nusers - h1->hs_nusers));
289 tcmp(struct hs *h1, struct hs *h2)
293 (down(h2) ? h2->hs_wd->wd_recvtime - now :
294 h2->hs_wd->wd_sendtime - h2->hs_wd->wd_boottime)