Skip to content

Commit 8d089d3

Browse files
committed
csysdig nasty window size bug that was causing green screens on empty tables
1 parent 315afdc commit 8d089d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

userspace/libsinsp/cursestable.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ void curses_table::render(bool data_changed)
326326
// Render the column headers
327327
//
328328
wmove(m_tblwin, 0, 0);
329+
329330
for(j = 0; j < m_w; j++)
330331
{
331332
if(m_type == sinsp_table::TT_TABLE)
@@ -780,7 +781,7 @@ void curses_table::recreate_win(int h)
780781
m_h = h;
781782
}
782783

783-
m_tblwin = newwin(m_h, 500, m_table_y_start, m_table_x_start);
784+
m_tblwin = newwin(m_h, m_w, m_table_y_start, m_table_x_start);
784785
render(true);
785786
}
786787

0 commit comments

Comments
 (0)