def _trans_dtime(self, value):
        """ Translate scheduled downtime """
        try:
            conv = int(value)
        except __HOLE__:
            return 0

        if conv < 1:
            return 0

        return conv
dataset/ETHPy150Open Yelp/fullerite/src/diamond/collectors/icinga_stats/icinga_stats.py/IcingaStatsCollector._trans_dtime