Lines Matching refs:idle
84 * Display the idle time.
87 pr_idle(time_t idle)
91 if (idle == (time_t)-1) {
96 days = idle / SECSPERDAY;
98 /* If idle more than 36 hours, print as a number of days. */
99 if (idle >= 48 * SECSPERHOUR)
101 else if (idle >= 36 * SECSPERHOUR)
104 /* If idle more than an hour, print as HH:MM. */
105 else if (idle >= SECSPERHOUR)
107 (int)(idle / SECSPERHOUR),
108 (int)((idle % SECSPERHOUR) / SECSPERMIN));
110 /* Else print the minutes idle. */
112 (void)printf(" %2d ", (int)(idle / SECSPERMIN));