Con Kolivas
0ed757a020
Use switch statement for cgpu->status and fix spelling.
13 years ago
Luke Dashjr
c57c308d1f
Bugfix: Don't declare devices SICK if they're just busy initializing
...
This mainly applies to ModMiner since it takes 4-5 minutes to upload the bitstream
13 years ago
Zefir Kurtisi
7502af263c
fix API support for big endian machines
...
Previously the allowed IP addresses were stored in little
endian representation and caused mismatch when run on big
endian machines.
Allowed IPs and netmasks are now kept in network byte
order and converted to little endian for matching
connecting client IP with allowed ones.
13 years ago
Kano
ff0afb94ec
Add API Notify counter 'Comms Error'
13 years ago
Con Kolivas
8b050083a0
Style police on api.c
13 years ago
Kano
c8535133aa
api.c put version up to 1.14
13 years ago
Kano
06f5f35ad4
api.c allow NULL data displayed as (null)
13 years ago
Kano
eab9debc72
api.c data structure - all testing attempted successful
13 years ago
Kano
d8abfb713e
api.c data structure - tested + updated get_api_stats/driver-icarus.c
13 years ago
Kano
538653a53e
api.c data structure - 2nd - untested
13 years ago
Kano
21e4cd85ea
api.c data structure rather than raw sprintf - 1st test
13 years ago
Kano
b63a374de2
api.c ensure old mode is always available when not using --api-groups + quit() on param errors
13 years ago
Kano
05b8f5b099
api.c fix json already closed
13 years ago
Kano
659e50434e
implement and document API option --api-groups
13 years ago
Kano
e4f9cc4e3e
api.c allow unwell devices to be enabled so they can be cured
13 years ago
Con Kolivas
c027492fa4
Make the pools array a dynamically allocated array to allow unlimited pools to be added.
13 years ago
Kano
195d915a6c
api.c display Pool Av in json
13 years ago
Con Kolivas
f32ffb8718
Work out a rolling average getwork delay stored in pool_stats.
13 years ago
Paul Sheppard
7ae22e21e3
Disable OpenCL code when not available.
13 years ago
drizztbsd
7dcd9f3ed2
Fix typo in some API messages (succeess/success)
13 years ago
Kano
836b76a0d6
api.c MMQ stat bugs
13 years ago
Kano
913221c373
API add ModMinerQuad support
13 years ago
Paul Sheppard
2384d0fbc6
Removed idle mode... again!?
...
Changed work_reset rate to every 100ms & use defines rather than numerics.
Change total sleep time to 4300ms after performance testing/measurement (now good to 916MH/s).
Changed timeout to 15s - Throttle time is 15s.
Added support for 'Busy' when submitting work.
Improved logging text to include device identifier.
Added a thread_enable api function, called when a thread is re-enabled.
... and removed useless re-init inside scanhash.
Use modminer introduced mutex.
13 years ago
Paul Sheppard
820d662c9d
Removed idle mode.
...
Added watchdog thread BFL temperature monitoring.
13 years ago
Paul Sheppard
ebeaf15f18
Added idle mode
...
Idle is only set by pgadisable, so GPU/CPU is unaffected.
For Icarus/Ztex, in scanhash the thread is immediately set disabled then returns.
13 years ago
Kano
fdcd72b9ae
API add stats for pool getworks
13 years ago
Kano
977aecc4a6
API update version to V1.11 and document changes
13 years ago
Kano
3cb3f09a50
API save default config file if none specified
13 years ago
Kano
fd9285eb72
api.c save success incorrectly returns error
13 years ago
Kano
a0936815a3
api.c replace BUFSIZ (linux/windows have different values)
13 years ago
Paul Sheppard
cebd647f50
Messing with BFL code
13 years ago
Con Kolivas
84f3bf998b
Use correct pool enabled enums in api.c.
13 years ago
Kano
00158c3a1f
API 'stats' allow devices to add their own stats also for testing/debug
13 years ago
Kano
976e27c4cb
API add getwork stats to cgminer - accesable from API 'stats'
13 years ago
Kano
a8619ad6f7
API support new pool status
13 years ago
Kano
44fc698750
API add last share time to each pool
13 years ago
Con Kolivas
d5d8c2cc5b
Implement an older header fix for a label existing before the pthread_cleanup macro.
13 years ago
Kano
afa3fa56b6
API bool's and 1TBS fixes
13 years ago
Kano
524e2fb8f2
api.c V1.9 add 'restart' + redesign 'quit' so thread exits cleanly
13 years ago
Kano
01c93bc1d4
api.c bug - remove extra ']'s in notify command
13 years ago
Con Kolivas
06bf44b06f
Restarting cgminer leads to a socket that can't be bound for 60 seconds, so increase the interval that API binding waits to 30 seconds to minimise the number of times it will retry, spamming the logs.
13 years ago
Kano
b249d72e1c
api.c include zTex in the FPGA support list
13 years ago
Kano
9febdb5a84
api.c ensure 'devs' shows PGA's when only PGA code is compiled
13 years ago
Kano
c4567ee67f
api.c combine all pairs of sprintfs()
13 years ago
Kano
87a5f0d87a
api.c uncomment and use BLANK (and COMMA)
13 years ago
Kano
6962514e06
api.c 'devdetails' list static details of devices
13 years ago
Kano
7e65126936
api.c fix unused variable compile warning
13 years ago
Con Kolivas
9b5615d5f3
Shut down the api cleanly when the api thread is cancelled. This should allow the api socket to be closed successfully to next be reopened with app_restart.
13 years ago
Kano
2e1d2017de
API add removepool like the screen interface
13 years ago
Kano
eec7c1a963
api.c escape required characters in return strings + pools returns the username
13 years ago