@@ -19,8 +19,6 @@ class ReportService {
19
19
def targetPath = SyncUtil . getTargetPath(sync)
20
20
Date startTime = new Date (progress. syncStartTime)
21
21
22
- def modifiedSince = sync. source. customProperties. find { it. key == ' modifiedSince' }?. value ?: ' N/A'
23
-
24
22
// generate summary CSV
25
23
long xputBytes = 0
26
24
if (progress. bytesComplete && progress. runtimeMs)
@@ -33,22 +31,21 @@ class ReportService {
33
31
cpuUsage = (double ) progress. cpuTimeMs / (double) progress.runtimeMs / (double ) host. hostCpuCount * 100
34
32
def rows = [[]]
35
33
rows << [' Source' , " ${ sync.source.pluginClass.tokenize('.').last()} " ]
34
+ rows << [' Source Path' , " ${ sourcePath} " ]
36
35
rows << [' Target' , " ${ sync.target.pluginClass.tokenize('.').last()} " ]
36
+ rows << [' Target Path' , " ${ targetPath} " ]
37
37
rows << [' Started At' , " ${ startTime.format('yyyy-MM-dd hh:mm:ssa')} " ]
38
38
rows << [' Stopped At' , " ${ progress.syncStopTime ? new Date(progress.syncStopTime).format('yyyy-MM-dd hh:mm:ssa') : 'N/A'} " ]
39
39
rows << [' Duration' , " ${ DisplayUtil.shortDur(TimeCategory.minus(new Date(progress.runtimeMs), new Date(0)))} " ]
40
- rows << [' Source Path' , " ${ sourcePath} " ]
41
- rows << [' Modified Since' , " ${ modifiedSince} " ]
42
- rows << [' Target Path' , " ${ targetPath} " ]
43
40
rows << [' Thread Count' , " ${ sync.syncThreadCount} " ]
44
- rows << [' Total Files and Directories Processed' , " ${ progress.objectsComplete} " ]
45
41
rows << [' Total Files and Directories Estimated' , " ${ progress.totalObjectsExpected} " ]
46
- rows << [' Total Bytes Transferred ' , " ${ DisplayUtil.simpleSize( progress.bytesComplete) } B " ]
42
+ rows << [' Total Files and Directories Processed ' , " ${ progress.objectsComplete } " ]
47
43
rows << [' Total Bytes Estimated' , " ${ progress.totalBytesExpected ? DisplayUtil.simpleSize(progress.totalBytesExpected) + 'B' : 'N/A'} " ]
44
+ rows << [' Total Bytes Transferred' , " ${ DisplayUtil.simpleSize(progress.bytesComplete)} B" ]
48
45
rows << [' General Error Message' , " ${ progress.runError} " ]
49
46
rows << [' Total Errors' , " ${ progress.objectsFailed} " ]
50
- rows << [' Overall Throughput (bytes)' , " ${ DisplayUtil.simpleSize(xputBytes)} B/s" ]
51
47
rows << [' Overall Throughput (files)' , " ${ DisplayUtil.simpleSize(xputFiles)} /s" ]
48
+ rows << [' Overall Throughput (bytes)' , " ${ DisplayUtil.simpleSize(xputBytes)} B/s" ]
52
49
rows << [' Overall CPU Usage' , " ${ cpuUsage.trunc(1)} %" ]
53
50
54
51
def entry = new ResultEntry ([ecsService : ecsService, jobId : jobId. toLong(), startTime : startTime])
0 commit comments