Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
27665376
authored
2014-10-28 14:09:39 -0400
by
Gary Katsevman
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
use Math.floor not parseInt
1 parent
7a89bc99
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/xhr.js
src/xhr.js
View file @
2766537
...
...
@@ -74,7 +74,7 @@
this
.
responseTime
=
new
Date
().
getTime
();
this
.
roundTripTime
=
this
.
responseTime
-
this
.
requestTime
;
this
.
bytesReceived
=
this
.
response
.
byteLength
||
this
.
response
.
length
;
this
.
bandwidth
=
parseInt
((
this
.
bytesReceived
/
this
.
roundTripTime
)
*
8
*
1000
,
1
0
);
this
.
bandwidth
=
Math
.
floor
((
this
.
bytesReceived
/
this
.
roundTripTime
)
*
8
*
100
0
);
}
return
callback
.
call
(
this
,
false
,
url
);
...
...
Please
register
or
sign in
to post a comment