#include <resource-monitor/resource-monitor.h>
-struct system_resouce_data {
+struct system_resource_data {
struct cpu_stat prev_avg;
struct cpu_stat curr_avg;
const struct resource_attribute *attr,
void *data)
{
- struct system_resouce_data *sysdata;
+ struct system_resource_data *sysdata;
double *util = (double *)data;
if (!res || !attr || !data)
const struct resource_attribute *attr,
void *data)
{
- struct system_resouce_data *sysdata;
+ struct system_resource_data *sysdata;
struct array_value *array = (struct array_value *)data;
double *utils;
int i;
static int system_driver_init(struct resource *res)
{
- struct system_resouce_data *sysdata;
+ struct system_resource_data *sysdata;
const char *res_name = get_resource_name(res);
int ret;
- sysdata = calloc(1, sizeof(struct system_resouce_data));
+ sysdata = calloc(1, sizeof(struct system_resource_data));
if (!sysdata)
return -ENOMEM;
static void system_driver_exit(struct resource *res)
{
- struct system_resouce_data *sysdata;
+ struct system_resource_data *sysdata;
if (!res)
return;
static int system_driver_prepare_update(struct resource *res)
{
- struct system_resouce_data *sysdata = get_resource_privdata(res);
+ struct system_resource_data *sysdata = get_resource_privdata(res);
const char *res_name = get_resource_name(res);
int ret;