Skip to content

Commit

Permalink
add offload in kb
Browse files Browse the repository at this point in the history
  • Loading branch information
cvazac committed Sep 28, 2017
1 parent 1eff6e3 commit 4fdf9d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion perfbar.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,10 @@ var UW = unsafeWindow;
tb.register("Resources", ["#", "KB", "TAO", "Cached", "Offload %", "Offload KB", "Edge"]);

document.addEventListener("onBoomerangLoaded", function({detail: {BOOMR}}) {
BOOMR.subscribe("onbeacon", function({t_other}) {
BOOMR.subscribe("onbeacon", function({t_other, ...beacon}) {
if (beacon.hasOwnProperty('cmet.offload')) {
tb.update("Resources", "Offload KB", Math.round(beacon['cmet.offload'] / 1000))
}
t_other.split(',').find(function(section) {
var data = section.split('|')
if (data[0] === 'custom0') {
Expand Down

0 comments on commit 4fdf9d5

Please sign in to comment.