git://git.novaco.in
/
p2pool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
added per-miner graphs
[p2pool.git]
/
p2pool
/
util
/
math.py
diff --git
a/p2pool/util/math.py
b/p2pool/util/math.py
index
a484c04
..
aa5ea8a
100644
(file)
--- a/
p2pool/util/math.py
+++ b/
p2pool/util/math.py
@@
-65,6
+65,8
@@
def add_dicts(*dicts):
res[k] = res.get(k, 0) + v
return dict((k, v) for k, v in res.iteritems() if v)
+mult_dict = lambda c, x: dict((k, c*v) for k, v in x.iteritems())
+
def format(x):
prefixes = 'kMGTPEZY'
count = 0