From 2417cfa6ee5220e39e7ebeaa2a436c17eed17cb6 Mon Sep 17 00:00:00 2001 From: Dario Rekowski on RockPI Date: Tue, 11 May 2021 09:42:51 +0000 Subject: [PATCH] add Ulfs suggestion --- community_server/src/Model/Table/StateBalancesTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community_server/src/Model/Table/StateBalancesTable.php b/community_server/src/Model/Table/StateBalancesTable.php index 8ee3be193..7e5f96be9 100644 --- a/community_server/src/Model/Table/StateBalancesTable.php +++ b/community_server/src/Model/Table/StateBalancesTable.php @@ -189,7 +189,7 @@ class StateBalancesTable extends Table $last_state_user_transaction->balance_date, $now); // if entrys are nearly the same, we don't need doing anything - if(abs($last_state_user_transaction_decayed - $first_state_balance_decayed) > 100) { + if(floor($last_state_user_transaction_decayed/100) !== floor($first_state_balance_decayed/100)) { $recalculate_state_user_transactions_balance = true; $update_state_balance = true; }