vmstat -p <part> works and updated version to 3.3.1
configure.ac now set to 3.3.1 vmstat -p has not worked for a long time, this applies Debian patch vmstat_part_format, the details: Author: Daniel Novotny Description: The contents of /proc/diskstats have changed since 2.6.25 Changed PATH_MAX to 32 because its missing on hurd Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=485243 Bug-Debian: http://bugs.debian.org/588677 Last-Update: 2010-11-17
This commit is contained in:
2
vmstat.c
2
vmstat.c
@ -286,7 +286,7 @@ static int diskpartition_format(const char* partition_name){
|
||||
struct disk_stat *disks;
|
||||
struct partition_stat *partitions, *current_partition=NULL;
|
||||
unsigned long ndisks, j, k, npartitions;
|
||||
const char format[] = "%20u %10llu %10u %10u\n";
|
||||
const char format[] = "%20u %10llu %10u %10llu\n";
|
||||
|
||||
fDiskstat=fopen("/proc/diskstats","rb");
|
||||
if(!fDiskstat){
|
||||
|
Reference in New Issue
Block a user