From 674112bf3f445eec3935816ddb4b6ccb335e25b4 Mon Sep 17 00:00:00 2001 From: Jens Alfke Date: Fri, 20 Dec 2024 15:25:11 -0800 Subject: [PATCH] HTTPListener: use "age_sece" not "started_on" in _active_tasks For EdgeServer --- REST/HTTPListener.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/REST/HTTPListener.cc b/REST/HTTPListener.cc index 934b24e15..ddf703806 100644 --- a/REST/HTTPListener.cc +++ b/REST/HTTPListener.cc @@ -220,7 +220,8 @@ namespace litecore::REST { void HTTPListener::Task::bumpTimeUpdated() { _timeUpdated = ::time(nullptr); } void HTTPListener::Task::writeDescription(JSONEncoder& json) { - json.writeFormatted("task_id: %u, started_on: %lu", _taskID, _timeStarted.load()); + unsigned long age = ::time(nullptr) - _timeStarted; + json.writeFormatted("task_id: %u, age_secs: %lu", _taskID, age); } unsigned HTTPListener::registerTask(Task* task) {