From 68e03a25e593e381fe27a05201cabd1edc8cfc2d Mon Sep 17 00:00:00 2001 From: Noor Date: Thu, 13 Mar 2025 06:27:38 +0000 Subject: [PATCH] fix: Reduce CPU pricing for total_units calculation in AppContract --- src/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data.rs b/src/data.rs index 822a37c..6613202 100644 --- a/src/data.rs +++ b/src/data.rs @@ -202,7 +202,7 @@ pub struct AppContract { impl AppContract { fn total_units(&self) -> f64 { // TODO: Optimize this based on price of hardware. - (self.vcpus as f64 * 10f64) + (self.vcpus as f64 * 5f64) + (self.memory_mb as f64 / 200f64) + (self.disk_size_mb as f64 / 10000f64) }