acep-uaf / camio-meter-streams

0 stars 0 forks source link

Alora/clean logs #134

Closed aloralove closed 2 weeks ago

aloralove commented 2 weeks ago

I added exit 1 whenever there was a fail to fix the bug when the meter connection failed. I don't know if you want to keep the logs this way or the exit 1 or 2. You may refactor and do that completely differently. The main fix was in test_meter_connection.sh on line 23

lftp_output=$(lftp -u $USERNAME,$PASSWORD -e "set net:limit-rate $bandwidth_limit; ls; bye" $meter_ip)

changed it to ls from pwd

More testing would need to be done to see if that change was the only change that fixed the bugs.