Lines Matching refs:h2
240 hscmp(struct hs *h1, struct hs *h2) in hscmp() argument
243 return (rflg * strcmp(h1->hs_wd->wd_hostname, h2->hs_wd->wd_hostname)); in hscmp()
250 lcmp(struct hs *h1, struct hs *h2) in lcmp() argument
254 if (down(h2)) in lcmp()
255 return (tcmp(h1, h2)); in lcmp()
258 else if (down(h2)) in lcmp()
262 (h2->hs_wd->wd_loadav[0] - h1->hs_wd->wd_loadav[0])); in lcmp()
269 ucmp(struct hs *h1, struct hs *h2) in ucmp() argument
273 if (down(h2)) in ucmp()
274 return (tcmp(h1, h2)); in ucmp()
277 else if (down(h2)) in ucmp()
280 return (rflg * (h2->hs_nusers - h1->hs_nusers)); in ucmp()
287 tcmp(struct hs *h1, struct hs *h2) in tcmp() argument
291 (down(h2) ? h2->hs_wd->wd_recvtime - now : in tcmp()
292 h2->hs_wd->wd_sendtime - h2->hs_wd->wd_boottime) in tcmp()