From b7fda453aba478e75fe9becbe554788e71cb0575 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Mon, 16 Aug 2021 19:27:57 -0500 Subject: [PATCH] Replace time.time_ns() call with time.time() to make compatible with older python3 --- src/miniq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/miniq.py b/src/miniq.py index 8edfd2c..655e7af 100755 --- a/src/miniq.py +++ b/src/miniq.py @@ -31,7 +31,7 @@ if not os.path.exists(os.path.join(JOB_DEFS, data['job'] + '.job')): sys.exit(1) # This is the name of the file that will be written to the queued jobs -file_name = str(time.time_ns()) + '.' + str(job_name) + '.json' +file_name = str(int(time.time() * 100000)) + '.' + str(job_name) + '.json' # Write the job data to the queue file with open(os.path.join(QUEUED_JOBS, file_name), 'w') as out_file: