-
Georges Da Costa authoredGeorges Da Costa authored
load.h 1.33 KiB
/*******************************************************
Copyright (C) 2018-2023 Georges Da Costa <georges.da-costa@irit.fr>
This file is part of Mojitos.
Mojitos is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Mojitos is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with MojitO/S. If not, see <https://www.gnu.org/licenses/>.
*******************************************************/
unsigned int init_load(char *, void **);
unsigned int get_load(uint64_t *results, void *);
void clean_load(void *);
void label_load(const char **labels, void *);
Sensor load = {
.init = init_load,
.get = get_load,
.clean = clean_load,
.label = label_load,
.nb_opt = 1,
};
Optparse load_opt[1] = {
{
.longname = "sysload",
.shortname = 'u',
.argtype = OPTPARSE_NONE,
.usage_arg = NULL,
.usage_msg = "system load",
.fn = NULL,
},
};