aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_go2work.go
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-01 18:26:38 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-01 18:26:38 +0200
commit6ea2acb5a3873dbec3721e79d1711e50e12fe9af (patch)
treed12a73c75672cfa405c47a05a97d96494507f163 /src/c_go2work.go
parentdouble 'p' fixed (diff)
downloadgo2work-6ea2acb5a3873dbec3721e79d1711e50e12fe9af.tar.gz
go2work-6ea2acb5a3873dbec3721e79d1711e50e12fe9af.tar.bz2
go2work-6ea2acb5a3873dbec3721e79d1711e50e12fe9af.tar.xz
go2work-6ea2acb5a3873dbec3721e79d1711e50e12fe9af.tar.zst
go2work-6ea2acb5a3873dbec3721e79d1711e50e12fe9af.zip
Random works fine
Diffstat (limited to '')
-rw-r--r--src/c_go2work.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/c_go2work.go b/src/c_go2work.go
index 956b481..076309a 100644
--- a/src/c_go2work.go
+++ b/src/c_go2work.go
@@ -39,7 +39,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* go2work: src/c_go2work.go
- * Fri Apr 1 17:40:27 CEST 2022
+ * Fri Apr 1 18:26:36 CEST 2022
* Joe
*
* The main.
@@ -105,6 +105,7 @@ func main() {
print_time_left(curr_t, dest_t)
ticker := time.NewTicker(INTERVAL * time.Millisecond)
quit := make(chan struct{})
+ file_id := choose_file(options)
for {
select {
case <- ticker.C:
@@ -113,7 +114,7 @@ func main() {
if curr_t[HOURS] == dest_t[HOURS] &&
curr_t[MINS] == dest_t[MINS] &&
curr_t[SECS] == dest_t[SECS] {
- args := append(options.player_options, options.files[0])
+ args := append(options.player_options, options.files[file_id])
has_rang := false
for {
exec_player(