size param to perfstat functions is size_t not int
This commit is contained in:
parent
fd0b920b0d
commit
3ae523990f
|
@ -6,14 +6,14 @@
|
||||||
* desired_number Must be set to 1."
|
* desired_number Must be set to 1."
|
||||||
* so we just hardcode that in our wrapper.
|
* so we just hardcode that in our wrapper.
|
||||||
*/
|
*/
|
||||||
int sigar_perfstat_cpu_total(perfstat_cpu_total_t *cpu_total, int size)
|
int sigar_perfstat_cpu_total(perfstat_cpu_total_t *cpu_total, size_t size)
|
||||||
{
|
{
|
||||||
return perfstat_cpu_total(NULL, cpu_total, size, 1);
|
return perfstat_cpu_total(NULL, cpu_total, size, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int sigar_perfstat_cpu(perfstat_id_t *id,
|
int sigar_perfstat_cpu(perfstat_id_t *id,
|
||||||
perfstat_cpu_t *cpu,
|
perfstat_cpu_t *cpu,
|
||||||
int size, int num)
|
size_t size, int num)
|
||||||
{
|
{
|
||||||
return perfstat_cpu(id, cpu, size, num);
|
return perfstat_cpu(id, cpu, size, num);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,11 +27,11 @@ typedef int (*vminfo_func_t) (void *, int, int);
|
||||||
|
|
||||||
typedef int (*proc_fd_func_t) (sigar_t *, sigar_pid_t, sigar_proc_fd_t *);
|
typedef int (*proc_fd_func_t) (sigar_t *, sigar_pid_t, sigar_proc_fd_t *);
|
||||||
|
|
||||||
typedef int (*perfstat_cpu_total_func_t)(perfstat_cpu_total_t *, int);
|
typedef int (*perfstat_cpu_total_func_t)(perfstat_cpu_total_t *, size_t);
|
||||||
|
|
||||||
typedef int (*perfstat_cpu_func_t)(perfstat_id_t *,
|
typedef int (*perfstat_cpu_func_t)(perfstat_id_t *,
|
||||||
perfstat_cpu_t *,
|
perfstat_cpu_t *,
|
||||||
int, int);
|
size_t, int);
|
||||||
|
|
||||||
struct sigar_t {
|
struct sigar_t {
|
||||||
SIGAR_T_BASE;
|
SIGAR_T_BASE;
|
||||||
|
|
Loading…
Reference in New Issue