mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
optimize clearTimeout + always shrink upload panes after completion + fix GET alignment
This commit is contained in:
parent
e64b87b99b
commit
d979c47f50
|
@ -726,7 +726,7 @@ class HttpCli(object):
|
|||
|
||||
def handle_get(self) -> bool:
|
||||
if self.do_log:
|
||||
logmsg = "%4s %s @%s" % (self.mode, self.req, self.uname)
|
||||
logmsg = "%-4s %s @%s" % (self.mode, self.req, self.uname)
|
||||
|
||||
if "range" in self.headers:
|
||||
try:
|
||||
|
|
|
@ -1974,7 +1974,10 @@ var pbar = (function () {
|
|||
w = 8,
|
||||
apos, adur;
|
||||
|
||||
clearTimeout(t_redraw);
|
||||
if (t_redraw) {
|
||||
clearTimeout(t_redraw);
|
||||
t_redraw = 0;
|
||||
}
|
||||
pctx.clearRect(0, 0, pc.w, pc.h);
|
||||
|
||||
if (!mp || !mp.au || !isNum(adur = mp.au.duration) || !isNum(apos = mp.au.currentTime) || apos < 0 || adur < apos)
|
||||
|
|
|
@ -1826,7 +1826,7 @@ function up2k_init(subtle) {
|
|||
|
||||
timer.rm(etafun);
|
||||
timer.rm(donut.do);
|
||||
utw_minh = 0;
|
||||
utw_minh = utw_read = 0;
|
||||
}
|
||||
|
||||
function chill(t) {
|
||||
|
|
Loading…
Reference in a new issue