Scale down the values by divisor, append the unit string.
StringBuffer sb = new StringBuffer();
sb.append("free=").append(minFree / div);
sb.append("/").append(avgFree / div);
sb.append("/").append(maxFree / div).append(" ").append(unit);
sb.append(", total=").append(minTotal / div);
sb.append("/").append(avgTotal / div);
sb.append("/").append(maxTotal / div).append(" ").append(unit);
return sb.toString();