Skip to content

Commit

Permalink
Fix model syntax
Browse files Browse the repository at this point in the history
Closes #38
  • Loading branch information
fzaninotto authored Mar 20, 2023
1 parent fb14a40 commit 68edea1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/model/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 68edea1

Please sign in to comment.