From d5078663c8f9c7fb80ff7a4be2bcc4082df74444 Mon Sep 17 00:00:00 2001 From: David Hill Date: Mon, 15 May 2017 10:15:16 -0500 Subject: [PATCH] MCOL-699 - fix getdisks output --- oamapps/mcsadmin/mcsadmin.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/oamapps/mcsadmin/mcsadmin.cpp b/oamapps/mcsadmin/mcsadmin.cpp index 8e304cc6e..375b21c96 100644 --- a/oamapps/mcsadmin/mcsadmin.cpp +++ b/oamapps/mcsadmin/mcsadmin.cpp @@ -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);