Skip to content

Commit 8934675

Browse files
committed
(fix): variable had no scope
1 parent b334a8b commit 8934675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function removeField(button) {
8282
const total_duration = data?.['data']?.['[RUNTIME]']?.['data']?.['phase_time_syscall_system']?.['data']?.['?.[SYSTEM]']?.['data']?.[uuid]?.['mean'];
8383
const network_transfer = data?.['data']?.['[RUNTIME]']?.['data']?.['network_io_cgroup_container']?.['data']?.['gmt-playwright-nodejs']?.['data']?.[uuid]?.['mean'];
8484

85-
cpu_power = (cpu_energy/total_duration).toFixed(2);
85+
const cpu_power = (cpu_energy/total_duration).toFixed(2);
8686
const network_carbon = (((network_transfer / 1e9) * 0.06)*300*10000).toFixed(2);
8787

8888

0 commit comments

Comments
 (0)