示例#1
0
def diff512rate(worker):
    period = get_period(request.query.period or 'Day')
    return jsonize([x for x in DATASTORE.getdiffrate(worker, 512, period)])
示例#2
0
def rejectrate():
    # approximate based on percentage of shares
    period = get_period(request.query.period or 'Day')
    workers = DATASTORE.getactiveworkers(period)
    return jsonize(
        sum_columns([DATASTORE.getrejectrate(x, period) for x in workers]))
示例#3
0
def rejectrate(worker):
    # approximate based on percentage of shares
    period = get_period(request.query.period or 'Day')
    return jsonize([x for x in DATASTORE.getrejectrate(worker, period)])
示例#4
0
def hashrate():
    period = get_period(request.query.period or 'Day')
    workers = DATASTORE.getactiveworkers(period)
    return jsonize(
        sum_columns([DATASTORE.gethashrate(x, period) for x in workers]))
示例#5
0
def hashrate(worker):
    period = get_period(request.query.period or 'Day')
    return jsonize([x for x in DATASTORE.gethashrate(worker, period)])
示例#6
0
文件: web.py 项目: San3ko/itzodmon
def diff512rate(worker):
    period = get_period(request.query.period or 'Day')
    return jsonize([ x for x in DATASTORE.getdiffrate(worker, 512, period)])
示例#7
0
def activeworkers():
    period = get_period(request.query.period or 'Day')
    return jsonize([x for x in DATASTORE.getactiveworkers(period)])
示例#8
0
文件: web.py 项目: San3ko/itzodmon
def rejectrate(worker):
    # approximate based on percentage of shares
    period = get_period(request.query.period or 'Day')
    return jsonize([ x for x in DATASTORE.getrejectrate(worker, period)])
示例#9
0
文件: web.py 项目: San3ko/itzodmon
def rejectrate():
    # approximate based on percentage of shares
    period = get_period(request.query.period or 'Day')
    workers = DATASTORE.getactiveworkers(period)
    return jsonize(sum_columns([ DATASTORE.getrejectrate(x, period) for x in workers ]))
示例#10
0
文件: web.py 项目: San3ko/itzodmon
def hashrate(worker):
    period = get_period(request.query.period or 'Day')
    return jsonize([ x for x in DATASTORE.gethashrate(worker, period)])
示例#11
0
文件: web.py 项目: San3ko/itzodmon
def hashrate():
    period = get_period(request.query.period or 'Day')
    workers = DATASTORE.getactiveworkers(period)
    return jsonize(sum_columns([ DATASTORE.gethashrate(x, period) for x in workers ]))
示例#12
0
文件: web.py 项目: San3ko/itzodmon
def activeworkers():
    period = get_period(request.query.period or 'Day')
    return jsonize([x for x in DATASTORE.getactiveworkers(period)])