const reduceValue:()

in cdslogviewer/frontend/app/common/bytesformatter.ts [4:12]


  const reduceValue: () => [number, string] = () => {
    let current = bytes;
    let c = 0;
    while (current > 1024 && c < suffixes.length - 1) {
      ++c;
      current = current / 1024;
    }
    return [current, suffixes[c]];
  };