- debug("= avg {:.6} ({} samples, {} non-null)".format(avg, len(history), count))
- if avg is not None:
+ if avg is None:
+ debug("= avg NONE ({} samples, {} non-null)".format(len(history), count))
+ else:
+ debug("= avg {:.6} ({} samples, {} non-null)".format(avg, len(history), count))