fix: Reduce CPU pricing for total_units calculation in AppContract
This commit is contained in:
parent
0aa484f79e
commit
68e03a25e5
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user