  formatStatus: function(currSize, finalSize) {    var now = Math.floor((new Date()).getTime() / 1000);        // 1) Determine the Download Progress in Kilobytes    var total = parseInt(finalSize/1024 + 0.5);    this.progress = this._formatKBytes(parseInt(currSize/1024 + 0.5), total);        var progress = this._replaceInsert(this._progressFormat, 1, this.progress);    var rateFormatted = "";        // 2) Determine the Transfer Rate    var oldElapsed = this._elapsed;    this._elapsed = now - this._startTime;    if (oldElapsed != this._elapsed) {      this._rate = this._elapsed ? Math.floor((currSize / 1024) / this._elapsed) : 0;      var isKB = true;      if (parseInt(this._rate / 1024) > 0) {        this._rate = (this._rate / 1024).toFixed(1);        isKB = false;      }      if (this._rate > 100)        this._rate = Math.round(this._rate);            if (this._rate) {        var format = isKB ? this._rateFormatKBSec : this._rateFormatMBSec;        this._rateFormatted = this._replaceInsert(format, 1, this._rate);        this._rateFormattedContainer = this._replaceInsert(" " + this._rateFormat, 1, this._rateFormatted);      }    }    progress = this._replaceInsert(progress, 2, this._rateFormattedContainer);        // 3) Determine the Time Remaining    var remainingTime = "";    if (this._rate && (finalSize > 0)) {      remainingTime = Math.floor(((finalSize - currSize) / 1024) / this._rate);      remainingTime = this._formatSeconds(remainingTime);      remainingTime = this._replaceInsert(this._timeFormat, 1, remainingTime)      remainingTime = this._replaceInsert(remainingTime, 2, this._remain);    }        //    // [statusFormat:    //  [progressFormat:    //   [[progressFormatKBKB|    //     progressFormatKBMB|    //     progressFormatMBMB|    //     progressFormatUnknownKB|    //     progressFormatUnknownMB    //    ][rateFormat]]    //  ][timeFormat]    // ]    var status = this._statusFormat;    status = this._replaceInsert(status, 1, progress);    status = this._replaceInsert(status, 2, remainingTime);    return status;  },
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/dd0789ea577a496e2622a164a469a9cb1bcf058d/updates.js/buggy/toolkit/mozapps/update/content/updates.js