1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-30 14:21:11 +03:00

MCOL-699 - fix getdisks output

This commit is contained in:
David Hill
2017-05-15 10:15:16 -05:00
parent c476add210
commit d5078663c8

View File

@@ -8342,7 +8342,11 @@ void printModuleDisk(ModuleDisk moduledisk)
moduledisk.diskusage[i].DeviceName.find(etcdir, 0) == string::npos ) {
cout.setf(ios::left);
cout.width(31);
cout << moduledisk.diskusage[i].DeviceName;
if (moduledisk.diskusage[i].DeviceName.length() > 29) {
cout << "..." + moduledisk.diskusage[i].DeviceName.substr(moduledisk.diskusage[i].DeviceName.length()-26);
} else {
cout << moduledisk.diskusage[i].DeviceName;
}
cout.width(14);
cout << moduledisk.diskusage[i].TotalBlocks;
cout.width(17);