New field in dynamic allocator app for Linux: 'All allocated'

This commit is contained in:
Pavel Kirienko
2016-02-19 11:52:51 +03:00
parent eb4532aefe
commit b7515646bb
@@ -256,7 +256,7 @@ void redraw(const uavcan_linux::NodePtr& node,
/*
* Constants that are permanent for the designed UI layout
*/
constexpr unsigned NumRelevantEvents = 16;
constexpr unsigned NumRelevantEvents = 17;
constexpr unsigned NumRowsWithoutEvents = 3;
/*
@@ -390,6 +390,11 @@ void redraw(const uavcan_linux::NodePtr& node,
node->getInternalFailureCount(),
colorize_if(node->getInternalFailureCount() != 0, CLIColor::Magenta));
const bool all_allocated = server.guessIfAllDynamicNodesAreAllocated();
render_top_str("All allocated",
all_allocated ? "Yes": "No",
colorize_if(!all_allocated, CLIColor::Magenta));
// Empty line before the next block
std::printf(" ");
render_next_event_counter();