Closed Bug 1962436 Opened 9 months ago Closed 6 months ago

DCC File transfer speed is calculated at infinity on fast links in cZ

Categories

(SeaMonkey :: Chat, defect)

defect

Tracking

(seamonkey2.53+ fixed)

RESOLVED FIXED
Future
Tracking Status
seamonkey2.53 + fixed

People

(Reporter: iannbugzilla, Assigned: iannbugzilla)

Details

(Whiteboard: SM2.53.22)

Attachments

(1 file)

If the connection speed is very fast then 100K can be transferred via DCC in less than 1ms so the current calculation for speed gives infinity as the answer. We should only try calculating after a certain amount of elapsed time (I picked 10ms) to avoid the impossible.

[Approval Request Comment]
Regression caused by (bug #): n/a
User impact if declined: speed calculation is wrong
Testing completed (on m-c, etc.): 2.53.22pre
Risk to taking this patch (and alternatives if risky): low
String changes made by this patch: none

Attachment #9480935 - Flags: review?(frgrahl)
Attachment #9480935 - Flags: approval-comm-release?
Summary: DCC File transfer speed is calculated at infiinity on fast links in cZ → DCC File transfer speed is calculated at infinity on fast links in cZ

Comment on attachment 9480935 [details] [diff] [review]
1962436-irc-fix-dcctransfer-speed-25322.patch

LGTM r/a+

NIT: For clarity I would pefer adding braces around the calculation:

if ((now - this._lastSpeedTime) > 10)

lmk if I should check it in with this change?

Flags: needinfo?(iannbugzilla)
Attachment #9480935 - Flags: review?(frgrahl)
Attachment #9480935 - Flags: review+
Attachment #9480935 - Flags: approval-comm-release?
Attachment #9480935 - Flags: approval-comm-release+

(In reply to Frank-Rainer Grahl (:frg) from comment #2)

Comment on attachment 9480935 [details] [diff] [review]
1962436-irc-fix-dcctransfer-speed-25322.patch

LGTM r/a+

NIT: For clarity I would pefer adding braces around the calculation:

if ((now - this._lastSpeedTime) > 10)

lmk if I should check it in with this change?

Yeah, if it makes you happy :)

Flags: needinfo?(iannbugzilla)

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/6cf7f8524288
DCC File transfer speed is calculated at infiinity on fast links in cZ. r=frg DONTBUILD

Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED

https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/32e11056755c52ca0c989e25f571566bd82123eb
DCC File transfer speed is calculated at infiinity on fast links in cZ. r=frg a=frg

Whiteboard: SM2.53.22
Target Milestone: --- → Future
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: