Skip to content

Commit

Permalink
corrected ngrok location
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-mm committed Sep 18, 2023
1 parent 7312848 commit 0ef84fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions scripts/make_measurement.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ function make_measurement() {

if [[ $send_data == 'true' ]]; then
add_endpoint=$API_BASE"/v1/ci/measurement/add"
#metrics_url="https://metrics.green-coding.berlin"
metrics_url="https://2c1a-2a02-2454-4e1-a300-2920-43b8-d927-46f0.ngrok-free.app"
metrics_url="https://metrics.green-coding.berlin"

value=$total_energy
value_mJ=$(echo "$value*1000" | bc -l | cut -d '.' -f 1)
Expand Down
3 changes: 2 additions & 1 deletion scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function start_measurement {
# call init_variables
source "$(dirname "$0")/vars.sh" cpu_vars

source "$(dirname "$0")/vars.sh" add_var API_BASE "https://api.green-coding.berlin"
# source "$(dirname "$0")/vars.sh" add_var API_BASE "https://api.green-coding.berlin"
source "$(dirname "$0")/vars.sh" add_var API_BASE "https://2c1a-2a02-2454-4e1-a300-2920-43b8-d927-46f0.ngrok-free.app"
source "$(dirname "$0")/vars.sh" add_var INIT "DONE"

# start measurement
Expand Down

0 comments on commit 0ef84fc

Please sign in to comment.