Skip to content

Commit 36ad7cb

Browse files
committed
(fix): Changed array access to new phase stats object
1 parent 7c09740 commit 36ad7cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ function removeField(button) {
7878
const data = json.data
7979
const uuid = data['comparison_identifiers'][0]
8080

81-
let cpu_energy = data['data']['[RUNTIME]']['cpu_energy_rapl_msr_component']['data']['Package_0']['data'][uuid]['mean']
82-
const total_duration = data['data']['[RUNTIME]']['phase_time_syscall_system']['data']['[SYSTEM]']['data'][uuid]['mean']
83-
const network_transfer = data['data']['[RUNTIME]']['network_io_cgroup_container']['data']['playwright-nodejs']['data'][uuid]['mean']
81+
let cpu_energy = data['data']['[RUNTIME]']['data']['cpu_energy_rapl_msr_component']['data']['Package_0']['data'][uuid]['mean']
82+
const total_duration = data['data']['[RUNTIME]']['data']['phase_time_syscall_system']['data']['[SYSTEM]']['data'][uuid]['mean']
83+
const network_transfer = data['data']['[RUNTIME]']['data']['network_io_cgroup_container']['data']['playwright-nodejs']['data'][uuid]['mean']
8484

8585
cpu_energy = ((((cpu_energy * 0.000001) / (total_duration / 1000000)) * 10_000) / 1_000).toFixed(2)
8686
const network_carbon = (((network_transfer / 1e9) * 0.06)*300*10000).toFixed(2)

0 commit comments

Comments
 (0)