public void calcPercents(){
  if (count == 0) {
    logger.info("can't divide by zero");
    return;
  }
  if (subItems != null && !subItems.isEmpty()) {
    for (    GraphicLogAnalysisResultItem item : subItems) {
      item.setPercent((item.getCount() * 100.0f) / count);
      item.calcPercents();
    }
  }
}

public void calcPercents ( ) { if ( count == 0 ) { logger . info ( "can't divide by zero" ) ; return ; } if ( subItems != null && ! subItems . isEmpty ( ) ) { for ( GraphicLogAnalysisResultItem item : subItems ) { item . setPercent ( ( item . getCount ( ) * 100.0f ) / count ) ; item . calcPercents ( ) ; } } }
calculate percents of sub items and sub items
