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:
Craig Small 2016-08-15 11:06:06 +00:00
commit 0a247fdb28

View File

@ -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, '/')))