BytesToStringConverter.prototype.convert = function()

in server/src/main/resources/twitter-server/js/utils.js [42:47]


BytesToStringConverter.prototype.convert = function(b) {
  if(b < this.bytesInKB) return this.showB(b)
  else if(b < this.bytesInMB) return this. showKB((b/this.bytesInKB).toFixed(1))
  else if(b < this.bytesInGB) return this.showMB((b/this.bytesInMB).toFixed(1))
  else return this.showGB((b/this.bytesInGB).toFixed(1))
}