From 68edea16bc22b1c7446136f1f8bc84a561228484 Mon Sep 17 00:00:00 2001 From: Francois Zaninotto Date: Mon, 20 Mar 2023 18:35:52 +0100 Subject: [PATCH] Fix model syntax Closes #38 --- src/model/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/model/README.md b/src/model/README.md index 9469049..8b63ae0 100644 --- a/src/model/README.md +++ b/src/model/README.md @@ -42,11 +42,11 @@ Given theses data when can we can compute cumulative data (`cpu.totalUsageInUser ### Formulas to convert times or volumes in Wh -- cpuWh = `pue` _ avg(`cpu.totalUsageInUserMode` + `cpu.totalUsageInKernelMode`) _ `config.CPU` / 3600 -- memWh = `pue` _ avg(`memory.usage`) _ `config.MEM` \* `totalTime` / 3600 -- diskWh = `pue` _ avg(`io.totalByte`) _ `config.DISK` -- networkWh = avg(`network.totalReceived` + `network.totalTransmitted`) \* `config.NETWORK` / 2 -- screenWh = avg(`userTime`) \* `config.SCREEN` / 3600 +- cpuWh = `pue` * avg(`cpu.totalUsageInUserMode` + `cpu.totalUsageInKernelMode`) * `config.CPU` / 3600 +- memWh = `pue` * avg(`memory.usage`) * `config.MEM` * `totalTime` / 3600 +- diskWh = `pue` * avg(`io.totalByte`) * `config.DISK` +- networkWh = avg(`network.totalReceived` + `network.totalTransmitted`) * `config.NETWORK` / 2 +- screenWh = avg(`userTime`) * `config.SCREEN` / 3600 When several measurements are made, the average of the measurements is used.