Added Expire Date to List View

This commit is contained in:
Deon George 2013-08-07 12:08:29 +10:00
parent 03ff74ba34
commit b53aafd8a8

View File

@ -35,12 +35,13 @@ int tsm_listfile_cb(dsmQueryType qType, DataBlk *qResp, void *userdata) {
} }
if (! headerPrinted++) if (! headerPrinted++)
printf("%40s %2s %s %3s %19s %10s %s\n", printf("%40s %2s %s %3s %19s %19s %10s %s\n",
"NAME", "NAME",
"ST", "ST",
"L", "L",
"CED", "CED",
"BACKUP", "BACKUP",
"EXPIRE",
"EST SIZE", "EST SIZE",
"ID" "ID"
); );
@ -91,7 +92,7 @@ int tsm_listfile_cb(dsmQueryType qType, DataBlk *qResp, void *userdata) {
return -1; return -1;
} }
printf("%40s|%2s|%s|%3s|%19s|%7.3f MB|%u-%u\n",dsmObjnameToStr(respBackup.objName),state,stor,ced,dsmDateToStr(respBackup.insDate),dsmSizeToNum(respBackup.sizeEstimate),respBackup.objId.hi,respBackup.objId.lo); printf("%40s|%2s|%s|%3s|%19s|%19s|%7.3f MB|%u-%u\n",dsmObjnameToStr(respBackup.objName),state,stor,ced,dsmDateToStr(respBackup.insDate),respBackup.expDate.year ? dsmDateToStr(respBackup.expDate) : "",dsmSizeToNum(respBackup.sizeEstimate),respBackup.objId.hi,respBackup.objId.lo);
return 1; return 1;
} }