return __td_string_set(vlabel, length, _("Objects"));
}
+int td_graph_vlabel_percent(td_ctx* ctx, td_graph* graph,
+ const td_graph_render_options* options, const char* object, char* vlabel, size_t length) {
+ return __td_string_set(vlabel, length, _("Percent"));
+}
+
int td_graph_vlabel_pps(td_ctx* ctx, td_graph* graph,
const td_graph_render_options* options, const char* object, char* vlabel, size_t length) {
return __td_string_set(vlabel, length, _("Packets Per Second"));
int td_graph_vlabel_objects(td_ctx* ctx, td_graph* graph,
const td_graph_render_options* options, const char* object, char* vlabel, size_t length);
+int td_graph_vlabel_percent(td_ctx* ctx, td_graph* graph,
+ const td_graph_render_options* options, const char* object, char* vlabel, size_t length);
+
int td_graph_vlabel_pps(td_ctx* ctx, td_graph* graph,
const td_graph_render_options* options, const char* object, char* vlabel, size_t length);
return __td_string_set(title, length, _("Processor Usage"));
}
-static int processor_vlabel(td_ctx* ctx, td_graph* graph,
- const td_graph_render_options* options, const char* object, char* vlabel, size_t length) {
- return __td_string_set(vlabel, length, _("Percent"));
-}
-
static int processor_render(td_ctx* ctx, td_graph* graph,
const td_graph_render_options* options, td_args* args, const char* object) {
int r;
.name = "Processor",
.render = processor_render,
.title = processor_title,
- .vlabel = processor_vlabel,
+ .vlabel = td_graph_vlabel_percent,
// Flags
.flags = TELEMETRY_GRAPH_REVERSE,