Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/currency/nanopool/nanopool_ | ||
|---|---|---|
| 75 | 75 |
from urllib2 import Request |
| 76 | 76 |
from urllib2 import urlopen |
| 77 | 77 |
from urllib2 import URLError |
| 78 |
|
|
| 78 |
|
|
| 79 | 79 |
|
| 80 | 80 |
|
| 81 | 81 |
def define_graph_types(): |
| ... | ... | |
| 131 | 131 |
print("API request error: {0}". format(err), file=sys.stderr)
|
| 132 | 132 |
exit(1) |
| 133 | 133 |
except: |
| 134 |
print("Unhandled error:", sys.exc_info()[0])
|
|
| 134 |
print("Unhandled error:", sys.exc_info()[0])
|
|
| 135 | 135 |
exit(1) |
| 136 | 136 |
try: |
| 137 | 137 |
result = json.loads(txt.decode("utf-8"))
|
| ... | ... | |
| 158 | 158 |
print("worker_{0}_hashrate.info Hashrate of worker '{1}'".format(worker_name, val["id"]))
|
| 159 | 159 |
print("worker_{0}_hashrate.min 0".format(worker_name))
|
| 160 | 160 |
print("worker_{0}_hashrate.draw LINE1".format(worker_name))
|
| 161 |
|
|
| 161 |
|
|
| 162 | 162 |
for val in worker_data: |
| 163 | 163 |
print("")
|
| 164 | 164 |
worker_name = "_".join(val["id"].split()) |
| ... | ... | |
| 234 | 234 |
print("")
|
| 235 | 235 |
print("multigraph worker_shares_{0}.worker_{1}".format(account_address, worker_name))
|
| 236 | 236 |
print("wshares.value {0} ".format(val["rating"]))
|
| 237 |
|
|
| 237 |
|
|
| 238 | 238 |
|
| 239 | 239 |
|
| 240 | 240 |
def write_config(): |
Formats disponibles : Unified diff