Closed Bug 67246 Opened 24 years ago Closed 24 years ago

Hook libxpnet into linux installer

Categories

(SeaMonkey :: Installer, defect, P3)

Other
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9

People

(Reporter: samir_bugzilla, Assigned: samir_bugzilla)

References

Details

(Whiteboard: [xpiprd] Fix in hand)

Attachments

(2 files)

No description provided.
Keywords: nsbeta1
Whiteboard: [xpiprd]
Target Milestone: --- → mozilla0.9
Priority: -- → P3
QA Contact: gemal → gbush
Keywords: nsbeta1nsbeta1+
*** Bug 55227 has been marked as a duplicate of this bug. ***
r=dbragg
Status: NEW → ASSIGNED
Whiteboard: [xpiprd] → [xpiprd] Fix in hand
you're probably doing a whole lot more floating point math than you need to here: + diff_usecs = (aPost->tv_sec - aPre->tv_sec) * USECS_PER_SEC; + diff_usecs += (float)aPost->tv_usec - (float)aPre->tv_usec; + rate = ((float)(aBytes/KILOBYTE))/((float)(diff_usecs/USECS_PER_SEC)); if you think about it, you've got two integer constants in this last calculation. Simplified, this is: (aBytes/KILOBYTE) * (USECS_PER_SEC/diff_usecs) which is actually the same as (aBytes * USECS_PER_SEC) / (KILOBYTE * diff_usecs) which is actually the same as (aBytes/diff_usecs) / (USECS_PER_SEC / KILOBYTE) and if you think about it that way, the compiler can do the work of USECS_PER_SEC/KILOBYTE at compile time this could actually gain you some accuracy as well because your'e not dividing or multiplying by very large numbers.. I love numerical math. so if you switch to that, sr=alecf
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
verified
Status: RESOLVED → VERIFIED
*** Bug 79357 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: