Skip to content

Commit

Permalink
ADCManager : return update time as string
Browse files Browse the repository at this point in the history
  • Loading branch information
KIM HYUNWOO committed Oct 25, 2018
1 parent a0926f1 commit 89382fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AutoDeployClient/Models/ADCManager/ADCStatusReportModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public class ADCStatusReportModel
public String adcFileType { get; set; }
public int adcProcessStatus { get; set; }
public String adcProcessMsg { get; set; }
public DateTime adcUpdateDateTime { get; set; }
public String adcUpdateDateTime { get; set; }
}
}
2 changes: 1 addition & 1 deletion AutoDeployClient/Utils/ADCManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public List<ADCStatusReportModel> GetLatestADCStatusList(int limit = DefineManag
adcProcessStatus = ADCExtension.IsStatusNotNull(adcStatusList, pushDataItem.ADC_Index) ? ADCExtension.GetStatusItem(adcStatusList, pushDataItem.ADC_Index).ADC_ProcessStatus : DefineManager.NOT_AVAILABLE,
adcProcessMsg = ADCExtension.IsStatusNotNull(adcStatusList, pushDataItem.ADC_Index) ? ADCExtension.GetStatusItem(adcStatusList, pushDataItem.ADC_Index).ADC_ProcessMsg : null,
adcUpdateDateTime = ADCExtension.IsStatusNotNull(adcStatusList, pushDataItem.ADC_Index) ? ADCExtension.GetStatusItem(adcStatusList, pushDataItem.ADC_Index).ADC_UpdateDateTime : DateTime.Now
adcUpdateDateTime = ADCExtension.IsStatusNotNull(adcStatusList, pushDataItem.ADC_Index) ? ADCExtension.GetStatusItem(adcStatusList, pushDataItem.ADC_Index).ADC_UpdateDateTime.ToString() : DateTime.Now.ToString()
}).OrderByDescending(orderPushDataItem => orderPushDataItem.adcIndex).Take(limit).ToList();

LogManager.PrintLogMessage("ADCManager", "GetLatestADCStatusList", "status report size: " + adcStatusReportList.Count, DefineManager.LOG_LEVEL_INFO);
Expand Down

0 comments on commit 89382fa

Please sign in to comment.