Skip to content

Commit

Permalink
Merge pull request #23 from skkuse/wonyeong
Browse files Browse the repository at this point in the history
chore: fix g to mg
  • Loading branch information
wonleeyoung authored Jun 12, 2024
2 parents 7793863 + 8c5f618 commit aa9bf89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BE/green_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def execute_java_code(code: str):
def calculate_carbon_footprint(runtime: float):
energy_needed = runtime * (POWER_DRAW_FOR_CPU * USAGE + POWER_DRAW_FOR_MEMORY_PER_GB ) * PUE * PSF
carbon_footprint = energy_needed * CARBON_INTENSITY
carbon_footprint = carbon_footprint / 3600
return carbon_footprint


Expand Down

0 comments on commit aa9bf89

Please sign in to comment.