Skip to content

Commit

Permalink
fix high cpu usage
Browse files Browse the repository at this point in the history
  • Loading branch information
itsHenry35 committed Jan 8, 2023
1 parent 2c38c00 commit 20eed28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/download2.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_stat():
tkinterlist[filename]['progress'].update()
tkinterlist[filename]['percentage'].configure(text=str("%.2f"%((int(stat['completedLength']) / int(stat['totalLength']) * 100))) + '%')
tkinterlist[filename]['speed'].configure(text='下载速度:' + str(round(int(stat['downloadSpeed'])/1024/1024, 2)) + 'MB/s')
time.sleep(0.001)
time.sleep(0.1)
root = ttk.Window(title = '乐读视频下载器-下载', themename="morph")
root.geometry('1280x720')
aria2process = subprocess.Popen(path__ + ' --enable-rpc --rpc-listen-port=6800 --max-connection-per-server=16 --file-allocation=none --max-concurrent-downloads=64',shell=True)
Expand Down

0 comments on commit 20eed28

Please sign in to comment.