summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2020-02-26 11:39:10 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2020-02-26 11:39:10 +0800
commite79e3b90dcf73e762ff9f43892e4342da1802f89 (patch)
treefc1b265b0982560fb7754ce37bbbaa598b88b3f7
parent21ff0bb6c3d9b782a18e2800a77c86157a530408 (diff)
lkftreport.py: set the last timestamp to starttimestamp + duration
so that we could get the duration for the kernel change, even no ci builds triggered Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--lkft/management/commands/lkftreport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lkft/management/commands/lkftreport.py b/lkft/management/commands/lkftreport.py
index c542474..da0f5d1 100644
--- a/lkft/management/commands/lkftreport.py
+++ b/lkft/management/commands/lkftreport.py
@@ -93,7 +93,7 @@ class Command(BaseCommand):
trigger_build['duration'] = datetime.timedelta(milliseconds=trigger_build['duration'])
trigger_build['name'] = kernel_change.trigger_name
trigger_build['kernel_change'] = kernel_change
- kernel_change_finished_timestamp = trigger_build['start_timestamp']
+ kernel_change_finished_timestamp = trigger_build['start_timestamp'] + trigger_build['duration']
kernel_change_status = "TRIGGER_BUILD_COMPLETED"