Skip to content

Commit 116c5d4

Browse files
committed
changed to 15 minute accuracy, if steam allows
1 parent 42ec681 commit 116c5d4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

steam_username_changer.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ while [ 1 ]; do
77
hours=${current_time%%:*}
88
minutes=${current_time#*:}
99
#round minutes downwards to closest half hour
10-
if [ "$minutes" -lt "30" ]; then
10+
if [ "$minutes" -lt "15" ]; then
1111
minutes="00"
12-
else
12+
elif [ "$minutes" -lt "30" ]; then
13+
minutes="15"
14+
elif [ "$minutes" -lt "45" ]; then
1315
minutes="30"
16+
else
17+
minutes="45"
1418
fi
1519
rounded_time="$hours:$minutes"
1620
current_rounded_time="$rounded_time"

0 commit comments

Comments
 (0)