Changes in uspace/app/top/top.c [87822ce:bd41ac52] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/top/top.c
r87822ce rbd41ac52 583 583 data_t data_prev; 584 584 const char *ret = NULL; 585 errno_t rc;586 int c;587 585 588 586 screen_init(); … … 597 595 /* And paint screen until death */ 598 596 while (true) { 599 rc = tgetchar(UPDATE_INTERVAL, &c);600 601 if ( rc == ETIMEOUT) { /* timeout */597 int c = tgetchar(UPDATE_INTERVAL); 598 599 if (c < 0) { /* timeout */ 602 600 data_prev = data; 603 601 if ((ret = read_data(&data)) != NULL) { … … 610 608 611 609 c = -1; 612 } else if (rc != EOK) {613 /* Error (e.g. communication with console lost) */614 goto out;615 610 } 616 611
Note:
See TracChangeset
for help on using the changeset viewer.