Skip to content

Commit

Permalink
dividing the number of packets by the number of pixels does not make …
Browse files Browse the repository at this point in the history
…any sense!

git-svn-id: https://xpra.org/svn/Xpra/trunk@12030 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 24, 2016
1 parent 1e04f3c commit fe5a2ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xpra/server/window/batch_delay_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ def get_target_quality(wid, window_dimensions, batch, global_statistics, statist
# 0 for lowest quality (low bandwidth usage)
# 100 for best quality (high bandwidth usage)
# here we try minimize client-latency, packet-backlog and batch.delay
packets_backlog, _, _ = statistics.get_client_backlog()
packets_bl = 1.0 - logp(packets_backlog/low_limit)
target = packets_bl
_, pixels_backlog, _ = statistics.get_client_backlog()
pixels_bl = 1.0 - logp(pixels_backlog/low_limit)
target = pixels_bl
batch_q = -1
if batch is not None:
recs = len(batch.last_actual_delays)
Expand All @@ -216,7 +216,7 @@ def get_target_quality(wid, window_dimensions, batch, global_statistics, statist
target_quality = mq + (100.0-mq) * target
info = {
"min_quality" : min_quality,
"backlog_factor": int(100.0*packets_bl),
"backlog_factor": int(100.0*pixels_bl),
}
if batch_q>=0:
info["batch_factor"] = int(100.0*batch_q)
Expand Down

0 comments on commit fe5a2ce

Please sign in to comment.