X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcursesdisplay.c;h=25fe1f94e075836daf83d85861407e1bd1817103;hb=b520ab458ea26829d00fca98f4bbb90309fd30df;hp=beb7bdf7342173c3ecf4e639e2826566155f1881;hpb=bc958efad4530621ea32e98f265509140713384a;p=lttngtop.git diff --git a/src/cursesdisplay.c b/src/cursesdisplay.c index beb7bdf..25fe1f9 100644 --- a/src/cursesdisplay.c +++ b/src/cursesdisplay.c @@ -302,23 +302,6 @@ void basic_header() wrefresh(header); } -struct tm format_timestamp(uint64_t timestamp) -{ - struct tm tm; - uint64_t ts_sec = 0, ts_nsec; - time_t time_s; - - ts_nsec = timestamp; - ts_sec += ts_nsec / NSEC_PER_SEC; - ts_nsec = ts_nsec % NSEC_PER_SEC; - - time_s = (time_t) ts_sec; - - localtime_r(&time_s, &tm); - - return tm; -} - static void scale_unit(uint64_t bytes, char *ret) { if (bytes >= 1000000000) @@ -1473,6 +1456,7 @@ void *handle_keyboard(void *p) current_view = previous_view; previous_view = process_details; } + selected_line = 0; update_current_view(); break;