Implement App functionality #11

Open
noormohammedb wants to merge 30 commits from noormohammedb/brain-mock:app_brain into main
Showing only changes of commit 68e03a25e5 - Show all commits

@ -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)
}