def report_cpu_metric(self, statname, value, instance):
        # Value in cummulative nanoseconds
        if str_to_bool(self.config['cpu_absolute']):
            metric = value
        else:
            # Nanoseconds (10^9), however, we want to express in 100%
            metric = self.derivative(statname, float(value) / 10000000.0,
                                     max_value=diamond.collector.MAX_COUNTER,
                                     instance=instance)
        self.publish(statname, metric, instance=instance)
dataset/ETHPy150Open python-diamond/Diamond/src/collectors/libvirtkvm/libvirtkvm.py/LibvirtKVMCollector.report_cpu_metric/original