fix bug count usedpct if total memory is 0