Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
if (r < 0)
goto ERROR;
+ // Set base
+ if (self->impl->base) {
+ r = td_args_push(args, "--base=%d", self->impl->base);
+ if (r < 0)
+ goto ERROR;
+ }
+
// Set lower limit
if (self->impl->lower_limit > -LONG_MAX) {
r = td_args_push(args, "--lower-limit=%ld", self->impl->lower_limit);
long lower_limit;
long upper_limit;
+ // Base
+ int base;
+
// Available
int (*available)(td_ctx* ctx, td_daemon* daemon);
.render = memory_render,
.title = memory_title,
.vlabel = memory_vlabel,
+ .base = 1024,
// Limits
.lower_limit = 0,