X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fnd_apachelogs2subscriptionstats;h=4155089fde14d2ee63618f9f55be9364bb800f8b;hb=5dd6c9f932a2b07412488d62dad2b700054d0903;hp=3b567476f438e9923a23d97e88556edf463e56d5;hpb=dd1f3a98ca826082b5d8a655e148b656dc110616;p=neurodebian.git diff --git a/tools/nd_apachelogs2subscriptionstats b/tools/nd_apachelogs2subscriptionstats index 3b56747..4155089 100755 --- a/tools/nd_apachelogs2subscriptionstats +++ b/tools/nd_apachelogs2subscriptionstats @@ -62,7 +62,7 @@ if __name__ == '__main__': # determine the union of all timestamps timestamps = set() for codename, stats in data.iteritems(): - timestamps.union_update(stats.keys()) + timestamps.update(stats.keys()) export = [{'key': release, 'values': [[ts, float(data[release].setdefault(ts, 0)) / 7] for ts in sorted(timestamps)]}