char line[512], fs_name[MAX_FS_LEN], mountp[256], type[128];
char *pos = 0, *pos2 = 0;
__nr_t fs = 0;
- int skip = 0, skip_next = 0;
+ int skip, skip_next = 0;
struct statvfs buf;
if ((fp = fopen(MTAB, "r")) == NULL)
if (sep) {
printf(", ");
}
- sep = TRUE;
printf("\"swpfree\": %llu, "
"\"swpused\": %llu, "
void pcp_def_pwr_fan_metrics(struct activity *a)
{
#ifdef HAVE_PCP
- int inst = 0;
+ int inst;
static pmInDom indom = PM_INDOM_NULL;
char buf[16];
void pcp_def_pwr_temp_metrics(struct activity *a)
{
#ifdef HAVE_PCP
- int inst = 0;
+ int inst;
static pmInDom indom = PM_INDOM_NULL;
char buf[16];
void pcp_def_pwr_in_metrics(struct activity *a)
{
#ifdef HAVE_PCP
- int inst = 0;
+ int inst;
static pmInDom indom = PM_INDOM_NULL;
char buf[16];
void pcp_def_pwr_usb_metrics(struct activity *a)
{
#ifdef HAVE_PCP
- int inst = 0;
+ int inst;
static pmInDom indom = PM_INDOM_NULL;
char buf[16];
{
FILE *fp;
unsigned long long parm;
- int rc = 0;
+ int rc;
/* Open /proc/sys/fs/dentry-state file */
if ((fp = fopen(FDENTRY_STATE, "r")) != NULL) {
{
FILE *fp;
char line[512], fs_name[MAX_FS_LEN], mountp[256], type[128];
- int skip = 0, skip_next = 0, fs;
+ int skip, skip_next = 0, fs;
char *pos = 0, *pos2 = 0;
__nr_t fs_read = 0;
struct stats_filesystem *st_filesystem_i;
{
int i, p;
int curr = 1, rtype;
- int eosaf = TRUE, reset = FALSE;
+ int eosaf = TRUE, reset;
long cnt = 1;
/* Read system statistics from file */
struct svg_hdr_parm *hdr_parm = (struct svg_hdr_parm *) parm;
struct tm rectime;
time_t t = file_hdr->sa_ust_time;
- unsigned int height = 0, ht = 0;
+ unsigned int height, ht = 0;
int i, p;
if (action & F_BEGIN) {