Skip to content

Commit

Permalink
Merge pull request #9 from s3714110/development
Browse files Browse the repository at this point in the history
small changes to second perf script
  • Loading branch information
Lam Tran authored Oct 16, 2020
2 parents 4d9b8f2 + 1da1f91 commit 8c03fcf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions second_perf_script
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ echo none | $SUDO $TEE /sys/class/leds/led0/trigger >/dev/null
while true #creates an infinite loop until the script exits itself
do

# turns on led.
turn_on_act_led

cpu_total=100
one_second=1

Expand All @@ -56,7 +53,8 @@ do
# fraction of the second that the LED will stay off
led_off_time=$(echo "$one_second - $led_on_time" | $BC -l)

# sleeps for the calculated fraction of a second
# turns on led, and sleeps for the calculated fraction of a second
turn_on_act_led
$SLEEP "$led_on_time"

# turns off led, and sleeps for the rest of the second
Expand Down

0 comments on commit 8c03fcf

Please sign in to comment.