commit | dda86d3e445aebd6d00b0d309d9239a7dd343122 | [log] [tgz] |
---|---|---|
author | koder aka kdanilov <kdanilov@mirantis.com> | Mon Mar 16 11:20:04 2015 +0200 |
committer | koder aka kdanilov <kdanilov@mirantis.com> | Mon Mar 16 11:20:04 2015 +0200 |
tree | 605c1c77b34071c704d364c4ad1e92b754d8df0f | |
parent | ce5444fbe4582364658860ce17c79fc47b931f06 [diff] [blame] |
new sensor manage code
diff --git a/storage_api.py b/storage_api.py index 28ec060..1dbf30c 100644 --- a/storage_api.py +++ b/storage_api.py
@@ -6,6 +6,7 @@ from flask import url_for import os + class Measurement(object): def __init__(self): self.build = "" @@ -27,7 +28,7 @@ s = stdev(item[1]) build[item[0]] = [m, s] - + def mean(l): n = len(l)