B2G/gaia/apps/costcontrol/js/settings/settings.js
// Update data usage view on settings
Update data usage view on settings
Update data usage view on settings
function updateDataUsage(datausage, lastDataReset) {
    var mobileUsage = document.querySelector('#mobile-data-usage > span');
    var data = roundData(datausage.mobile.total);
    mobileUsage.textContent = formatData(data);
    var wifiUsage = document.querySelector('#wifi-data-usage > span');
    data = roundData(datausage.wifi.total);
    wifiUsage.textContent = formatData(data);
    var timestamp = document.querySelector('#wifi-data-usage + .meta');
    timestamp.innerHTML = '';
    timestamp.appendChild(formatTimeHTML(lastDataReset, datausage.timestamp));
  }
function updateDataUsage ( datausage , lastDataReset ) { var mobileUsage = document . querySelector ( '#mobile-data-usage > span' ) ; var data = roundData ( datausage . mobile . total ) ; mobileUsage . textContent = formatData ( data ) ; var wifiUsage = document . querySelector ( '#wifi-data-usage > span' ) ; data = roundData ( datausage . wifi . total ) ; wifiUsage . textContent = formatData ( data ) ; var timestamp = document . querySelector ( '#wifi-data-usage + .meta' ) ; timestamp . innerHTML = '' ; timestamp . appendChild ( formatTimeHTML ( lastDataReset , datausage . timestamp ) ) ; }
Update data usage view on settings
Update data usage view on settings