Skip to content

Commit

Permalink
Merge pull request #221 from arpcefxl/master
Browse files Browse the repository at this point in the history
updated metrics.c disk usage to use double instead of float
  • Loading branch information
jbuchbinder committed Apr 14, 2015
2 parents ca671fd + ccd678c commit 3cdc4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmetrics/linux/metrics.c
Expand Up @@ -1351,7 +1351,7 @@ float device_space(char *mount, char *device, double *total_size, double *total_
*total_size += size * blocksize;
*total_free += free * blocksize;
/* The percentage of space used on this partition. */
pct = size ? ((size - free) / (float) size) * 100 : 0.0;
pct = size ? ((size - free) / (double) size) * 100 : 0.0;
return pct;
}

Expand Down

0 comments on commit 3cdc4e2

Please sign in to comment.