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