changed log format
fixed division by zero error when there are no nodes in cluster