Merge branch 'vmstat_isdev_fix' into 'master'
Fixing is_disk() which mistakes devices with name longer than 20 chars for partitions. Associated with previous vmstat -d enhancement commit. See merge request !19
This commit is contained in:
commit
0a247fdb28
@ -938,7 +938,7 @@ unsigned int getpartitions_num(struct disk_stat *disks, int ndisks){
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
static int is_disk(char *dev)
|
||||
{
|
||||
char syspath[32];
|
||||
char syspath[64];
|
||||
char *slash;
|
||||
|
||||
while ((slash = strchr(dev, '/')))
|
||||
|
Loading…
Reference in New Issue
Block a user