Home | History | Annotate | Download | only in ruptime

Lines Matching defs:HS

58 static struct hs {
61 } *hs;
82 struct hs *hsp;
137 if ((hs =
138 realloc(hs, (hspace += 40) * sizeof(*hs))) == NULL)
140 hsp = hs + nhosts;
162 qsort(hs, nhosts, sizeof (hs[0]), cmp);
164 hsp = &hs[i];
212 #define HS(a) ((const struct hs *)(a))
219 strcmp(HS(a1)->hs_wd->wd_hostname, HS(a2)->hs_wd->wd_hostname));
226 if (ISDOWN(HS(a1))) {
227 if (ISDOWN(HS(a2)))
231 } else if (ISDOWN(HS(a2))) {
235 (HS(a2)->hs_wd->wd_loadav[0] - HS(a1)->hs_wd->wd_loadav[0]));
242 if (ISDOWN(HS(a1))) {
243 if (ISDOWN(HS(a2)))
247 } else if (ISDOWN(HS(a2))) {
250 return (rflg * (HS(a2)->hs_nusers - HS(a1)->hs_nusers));
258 (ISDOWN(HS(a2)) ? HS(a2)->hs_wd->wd_recvtime - now
259 : HS(a2)->hs_wd->wd_sendtime - HS(a2)->hs_wd->wd_boottime)
261 (ISDOWN(HS(a1)) ? HS(a1)->hs_wd->wd_recvtime - now
262 : HS(a1)->hs_wd->wd_sendtime - HS(a1)->hs_wd->wd_boottime)