From 2b1a3063fc3c49571bd8c03af6e1c45ecc96719d Mon Sep 17 00:00:00 2001 From: antleb Date: Sun, 18 Feb 2024 01:57:16 +0200 Subject: [PATCH] changes execution time to int --- .../gr/uoa/di/madgik/statstool/services/StatsServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DBAccess/src/main/java/gr/uoa/di/madgik/statstool/services/StatsServiceImpl.java b/DBAccess/src/main/java/gr/uoa/di/madgik/statstool/services/StatsServiceImpl.java index 2630f07..1523fe5 100644 --- a/DBAccess/src/main/java/gr/uoa/di/madgik/statstool/services/StatsServiceImpl.java +++ b/DBAccess/src/main/java/gr/uoa/di/madgik/statstool/services/StatsServiceImpl.java @@ -82,7 +82,7 @@ public List query(List queryList, String orderBy) throws StatsSer log.debug("result: " + result); long execTime = new Date().getTime() - start; - statsCache.save(new QueryWithParameters(querySql, parameters, profile), result, execTime); + statsCache.save(new QueryWithParameters(querySql, parameters, profile), result, (int) execTime); } } else { log.debug("Cache disabled for query.");