Implement App functionality #11
@ -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