'Updates this sample from the new sample.'

def Average(self, sample):

    self.timestamp = sample.timestamp
    self.user_cpu_time = sample.user_cpu_time
    self.system_cpu_time = sample.system_cpu_time
    self.cpu_percent = (((self.cpu_percent * self._total_samples) + sample.cpu_percent) / (self._total_samples + 1))
    self._total_samples += 1
