From ea8edc591408456471155509ee3198cc4e3e4be9 Mon Sep 17 00:00:00 2001 From: lanceyq <1982376970@qq.com> Date: Mon, 16 Mar 2026 16:26:05 +0800 Subject: [PATCH] [changes] average_activation_value, rounded to two decimal places --- api/app/services/memory_forget_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/services/memory_forget_service.py b/api/app/services/memory_forget_service.py index e1030b24..84c4aff6 100644 --- a/api/app/services/memory_forget_service.py +++ b/api/app/services/memory_forget_service.py @@ -518,7 +518,7 @@ class MemoryForgetService: 'total_nodes': result['total_nodes'] or 0, 'nodes_with_activation': result['nodes_with_activation'] or 0, 'nodes_without_activation': result['nodes_without_activation'] or 0, - 'average_activation_value': result['average_activation'], + 'average_activation_value': round(result['average_activation'], 2) if result['average_activation'] is not None else None, 'low_activation_nodes': result['low_activation_nodes'] or 0, 'forgetting_threshold': forgetting_threshold, 'timestamp': int(datetime.now().timestamp() * 1000)