From 9ed48da44c1c3f584f45476801915c33bf83592e Mon Sep 17 00:00:00 2001 From: Dario Rekowski on RockPI Date: Fri, 26 Mar 2021 11:46:35 +0000 Subject: [PATCH] fix temporaer calculating error --- community_server/src/Model/Entity/StateBalance.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community_server/src/Model/Entity/StateBalance.php b/community_server/src/Model/Entity/StateBalance.php index b1c237a3b..c5fcf5976 100644 --- a/community_server/src/Model/Entity/StateBalance.php +++ b/community_server/src/Model/Entity/StateBalance.php @@ -68,7 +68,7 @@ class StateBalance extends Entity if($decay_duration <= 0) { return $this->amount; } - return $this->amount; + return 0; //return $this->amount * pow(0.99999997802044727, $decay_duration); }