- Fixing sysinfo - devices with length exceeding 15 chars are not displayed in vmstat -d

This commit is contained in:
Jan Rybar
2016-06-30 18:29:50 +02:00
parent ee1fd80fc0
commit 47497dd240
2 changed files with 7 additions and 7 deletions

View File

@@ -101,7 +101,7 @@ extern void vminfo(void);
typedef struct disk_stat{
unsigned long long reads_sectors;
unsigned long long written_sectors;
char disk_name [16];
char disk_name [32];
unsigned inprogress_IO;
unsigned merged_reads;
unsigned merged_writes;
@@ -115,7 +115,7 @@ typedef struct disk_stat{
}disk_stat;
typedef struct partition_stat{
char partition_name [16];
char partition_name [35];
unsigned long long reads_sectors;
unsigned parent_disk; // index into a struct disk_stat array
unsigned reads;