Skip to content

Commit

Permalink
fix(sinspui): removed MAX macro
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Dec 3, 2023
1 parent a823b49 commit 0605744
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions userspace/sinspui/cursesui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ limitations under the License.
*/

#include <iostream>
#include <algorithm>
#include "sinsp.h"
#include "sinsp_int.h"
#include "filter.h"
Expand Down Expand Up @@ -944,8 +945,8 @@ void sinsp_cursesui::draw_bottom_menu(vector<sinsp_menuitem_info>* items, bool i

attrset(m_colors[PROCESS]);
string fks = items->at(j).m_key;
mvaddnstr(m_screenh - 1, k, fks.c_str(), MAX(fks.size(), 2));
k += MAX(fks.size(), 2);
mvaddnstr(m_screenh - 1, k, fks.c_str(), std::max(fks.size(), 2));
k += std::max(fks.size(), 2);

attrset(m_colors[PANEL_HIGHLIGHT_FOCUS]);
fks = items->at(j).m_desc;
Expand Down

0 comments on commit 0605744

Please sign in to comment.