From c07b4d43b95ad9da49a98b73eed20081e23495dc Mon Sep 17 00:00:00 2001 From: Sainan Date: Sun, 5 Jan 2025 09:11:35 +0100 Subject: [PATCH] toFixed(0) is all we need --- src/controllers/api/infestedFoundryController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/infestedFoundryController.ts b/src/controllers/api/infestedFoundryController.ts index c5d95f4a..bdb48403 100644 --- a/src/controllers/api/infestedFoundryController.ts +++ b/src/controllers/api/infestedFoundryController.ts @@ -92,7 +92,7 @@ export const infestedFoundryController: RequestHandler = async (req, res) => { const hoursRemaining = (record.Date - currentUnixSeconds) / 3600; const apetiteFactor = apetiteModel(hoursRemaining) / 30; - logger.debug(`helminth eating ${contribution.ItemType} (+${(snack.gain * 100).toFixed(2)}%)`, { + logger.debug(`helminth eating ${contribution.ItemType} (+${(snack.gain * 100).toFixed(0)}%)`, { hoursRemaining, apetiteFactor });