Skip to content

Commit 68edea1

Browse files
authored
Fix model syntax
Closes #38
1 parent fb14a40 commit 68edea1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/model/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ Given theses data when can we can compute cumulative data (`cpu.totalUsageInUser
4242

4343
### Formulas to convert times or volumes in Wh
4444

45-
- cpuWh = `pue` _ avg(`cpu.totalUsageInUserMode` + `cpu.totalUsageInKernelMode`) _ `config.CPU` / 3600
46-
- memWh = `pue` _ avg(`memory.usage`) _ `config.MEM` \* `totalTime` / 3600
47-
- diskWh = `pue` _ avg(`io.totalByte`) _ `config.DISK`
48-
- networkWh = avg(`network.totalReceived` + `network.totalTransmitted`) \* `config.NETWORK` / 2
49-
- screenWh = avg(`userTime`) \* `config.SCREEN` / 3600
45+
- cpuWh = `pue` * avg(`cpu.totalUsageInUserMode` + `cpu.totalUsageInKernelMode`) * `config.CPU` / 3600
46+
- memWh = `pue` * avg(`memory.usage`) * `config.MEM` * `totalTime` / 3600
47+
- diskWh = `pue` * avg(`io.totalByte`) * `config.DISK`
48+
- networkWh = avg(`network.totalReceived` + `network.totalTransmitted`) * `config.NETWORK` / 2
49+
- screenWh = avg(`userTime`) * `config.SCREEN` / 3600
5050

5151
When several measurements are made, the average of the measurements is used.
5252

0 commit comments

Comments
 (0)