Root/cgminer/root-files/usr/lib/lua/luci/model/cbi/cgminer/cgminerstatus.lua

Source at commit 8b7a89168c777ee394adff8070b29581ebf46ba8 created 7 years 1 month ago.
By Xiangfu, cgmienr: add a webui, update to 2.10.5
1--[[
2LuCI - Lua Configuration Interface
3
4Copyright 2013 Xiangfu
5Copyright 2008 Steven Barth <steven@midlink.org>
6Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
7
8Licensed under the Apache License, Version 2.0 (the "License");
9you may not use this file except in compliance with the License.
10You may obtain a copy of the License at
11
12    http://www.apache.org/licenses/LICENSE-2.0
13
14$Id$
15]]--
16f = SimpleForm("cgminerstatus", translate("Cgminer Status"), translate("This list gives an overview over currently running cgminer."))
17f.reset = false
18f.submit = false
19
20t = f:section(Table, luci.controller.cgminer.summary(), translate("Summary"))
21t:option(DummyValue, "elapsed", translate("Elapsed"))
22t:option(DummyValue, "mhsav", translate("MHSav"))
23t:option(DummyValue, "foundblocks", translate("FoundBlocks"))
24t:option(DummyValue, "getworks", translate("Getworks"))
25t:option(DummyValue, "accepted", translate("Accepted"))
26t:option(DummyValue, "rejected", translate("Rejected"))
27t:option(DummyValue, "hw", translate("HW"))
28t:option(DummyValue, "utility", translate("Utility"))
29t:option(DummyValue, "discarded", translate("Discarded"))
30t:option(DummyValue, "stale", translate("Stale"))
31t:option(DummyValue, "getfailures", translate("GetFailures"))
32t:option(DummyValue, "localwork", translate("LocalWork"))
33t:option(DummyValue, "remotefailures", translate("RemoteFailures"))
34t:option(DummyValue, "networkblocks", translate("NetworkBlocks"))
35t:option(DummyValue, "totalmh", translate("TotalMH"))
36t:option(DummyValue, "wu", translate("WU"))
37t:option(DummyValue, "diffaccepted", translate("DiffA"))
38t:option(DummyValue, "diffrejected", translate("DiffR"))
39t:option(DummyValue, "diffstale", translate("DiffS"))
40t:option(DummyValue, "bestshare", translate("BestShare"))
41
42t2 = f:section(Table, luci.controller.cgminer.pools(), translate("Pools"))
43t2:option(DummyValue, "pool", translate("Pool"))
44t2:option(DummyValue, "url", translate("URL"))
45t2:option(DummyValue, "status", translate("Status"))
46t2:option(DummyValue, "priority", translate("Priority"))
47t2:option(DummyValue, "longpoll", translate("LP"))
48t2:option(DummyValue, "getworks", translate("GetWorks"))
49t2:option(DummyValue, "accepted", translate("Accepted"))
50t2:option(DummyValue, "rejected", translate("Rejected"))
51t2:option(DummyValue, "discarded", translate("Discarded"))
52t2:option(DummyValue, "stale", translate("Stale"))
53t2:option(DummyValue, "getfailures", translate("GF"))
54t2:option(DummyValue, "remotefailures", translate("RF"))
55t2:option(DummyValue, "user", translate("User"))
56t2:option(DummyValue, "lastsharetime", translate("LastShareTime"))
57t2:option(DummyValue, "diff1shares", translate("Diff1Shares"))
58t2:option(DummyValue, "diffaccepted", translate("DiffA"))
59t2:option(DummyValue, "diffrejected", translate("DiffR"))
60t2:option(DummyValue, "diffstale", translate("DiffS"))
61t2:option(DummyValue, "lastsharedifficulty", translate("LSD"))
62t2:option(DummyValue, "hasstratum", translate("HasStratum"))
63t2:option(DummyValue, "stratumactive", translate("StratumActive"))
64t2:option(DummyValue, "stratumurl", translate("StratumURL"))
65t2:option(DummyValue, "hasgbt", translate("GBT"))
66
67return f
68

Archive Download this file



interactive