1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-09 22:38:01 +00:00
Commit Graph

2027 Commits

Author SHA1 Message Date
Luke Dashjr
1291f5a407 Icarus: Use epoll (where available) to get nonces ASAP 2012-04-21 10:21:23 -04:00
Con Kolivas
7f107fb928 Merge branch 'master' into ztex 2012-04-21 18:28:51 +10:00
Luke Dashjr
0d92069760 Merge branch 'master' into align_temps
Conflicts:
	cgminer.c
2012-04-21 03:32:57 -04:00
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. 2012-04-21 17:20:33 +10:00
Luke Dashjr
730849c988 Make a union for cgpu device handles, and rename "device" to "device_ztex" since it's Ztex-specific 2012-04-21 03:01:42 -04:00
Luke Dashjr
657716e563 Merge branch 'master' into ztex 2012-04-21 02:56:20 -04:00
Con Kolivas
127c4a5ff4 Initialise name variable. 2012-04-21 16:54:37 +10:00
Con Kolivas
e07c72687b Remove unnecessary check for variable that always has memory allocated. 2012-04-21 16:50:02 +10:00
Con Kolivas
a5b05d9c55 Merge pull request #167 from luke-jr/bugfix_missing_stmt
Bugfix: Missing "break" no-op in default case
2012-04-20 23:48:36 -07:00
Luke Dashjr
7987476db3 Bugfix: Missing "break" no-op in default case 2012-04-21 02:47:28 -04:00
Luke Dashjr
7312759596 Workaround Icarus UART failures by reopening the tty every scanhash
ngzhang says the USB-UART chip isn't stable on some computers, and I'm experiencing some weirdness myself.
This workaround seems to fix it (tested for over 48 hours, whereas failure is usually in well under 5 hours).
2012-04-21 02:43:54 -04:00
Con Kolivas
7b947882fe Merge pull request #157 from luke-jr/unify_drivers
Unify drivers as driver-*.c and add driver name to API
2012-04-20 23:41:46 -07:00
Con Kolivas
86671f80a8 Make the status window and log window as large as can fit on startup, rechecking to see if it can be enlarged after the fact. This allows any number of devices to be displayed provided the window is made long enough without corrupting the output. 2012-04-21 16:39:14 +10:00
Luke Dashjr
b8778839e9 Merge branch 'master' into unify_drivers
Conflicts:
	cgminer.c
2012-04-21 02:36:19 -04:00
Con Kolivas
c7cc2e4226 Merge branch 'master' into ztex 2012-04-21 14:03:41 +10:00
Con Kolivas
bd46119c11 Style police on libztex.c. 2012-04-21 14:02:22 +10:00
Con Kolivas
e08936c3fb Merge pull request #166 from kanoi/master
api.c escape required characters in return strings + pools returns the username
2012-04-20 15:00:39 -07:00
Kano
2e1d2017de API add removepool like the screen interface 2012-04-21 03:15:41 +10:00
Kano
eec7c1a963 api.c escape required characters in return strings + pools returns the username 2012-04-20 23:50:27 +10:00
Con Kolivas
46faefbe82 Merge branch 'ztex-master' of https://github.com/nelisky/cgminer into ztex 2012-04-20 21:20:03 +10:00
Con Kolivas
9609dbc42d Set lp_path to NULL after free for consistency. 2012-04-20 21:09:37 +10:00
Con Kolivas
9b2e62d339 Merge pull request #165 from nelisky/resp_hdr_cb_leak
Fixing leak in resp_hdr_cb
2012-04-20 04:08:11 -07:00
nelisky
17b9baa9da Removing dmalloc import left behind by mistake 2012-04-20 03:36:42 -07:00
Con Kolivas
381107cc7b Merge pull request #164 from kanoi/master
miner.php optionally support multiple rigs
2012-04-20 03:08:18 -07:00
ckolivas
b80d22b9d2 Increase maximum number of displayed devices to 14, beyond which the screen becomes corrupted. 2012-04-20 14:24:58 +10:00
nelisky
44bcb69ccd Fixing leak in resp_hdr_cb
Memory is allocated for key and val, and longpoll address, when found, is stored in the header_info and prevented from being freed there. This pointer is stored during pool probing but once that's done it was just being lost.

Not so visible but also leaking was the refuse reason string.
2012-04-19 14:45:40 -07:00
Kano
8237568395 miner.php warning highlight GPU stats if they are zero (e.g. ADL not enabled) 2012-04-18 21:12:51 +10:00
Kano
d5323b7c0c miner.php highlight any device that isn't 'Enabled' 2012-04-18 21:01:42 +10:00
Kano
39eeca263e miner.php highlight any Status that isn't 'Alive' 2012-04-18 20:55:20 +10:00
nelisky
6970714ae1 Use detected endianness for ztex overflow detection and hash rate reporting 2012-04-18 01:59:48 -07:00
nelisky
9ba2e21793 Some cleanup 2012-04-18 01:54:51 -07:00
Kano
c52b55e244 README update details about miner.php 2012-04-18 12:55:16 +10:00
Kano
3a3912070e miner.php optionally support multiple rigs 2012-04-18 12:50:26 +10:00
nelisky
c280dd0dae Moving space indentation to tabs
For consistency with cgminer sources
2012-04-17 01:51:53 -07:00
nelisky
f9d4d92b9a Some cleanup 2012-04-17 01:25:55 -07:00
nelisky
7fe7d18dba removing unused libusb_context pointer 2012-04-16 14:14:52 -07:00
nelisky
0649972f69 ztex detect was broken due to bad branch split 2012-04-16 12:29:24 -07:00
nelisky
3067a414fc leak fix 2012-04-16 11:41:17 -07:00
nelisky
381c294878 had freqM1 as int when it is a double. 2012-04-16 11:40:22 -07:00
nelisky
57a2764eb5 Small tweaks to freq reporting 2012-04-16 11:39:36 -07:00
nelisky
608a520573 Tweaks to make ztex work on a tp-link router with openwrt 2012-04-16 11:34:54 -07:00
nelisky
a960087c0a Ztex device removal segfault fixed 2012-04-16 11:32:30 -07:00
nelisky
261677d1ac Adding serial number to status line.
Also preventing segfault on device removal.
2012-04-16 11:30:00 -07:00
nelisky
79756384d4 ztex Mhz reporting 2012-04-16 11:27:58 -07:00
nelisky
8f58d25614 Improved ztex device detection 2012-04-16 11:23:56 -07:00
nelisky
3197ca54e4 Better cleanup and error handling 2012-04-16 04:11:28 -07:00
nelisky
95d17e985d NULLing handle on destroy 2012-04-16 04:07:56 -07:00
nelisky
8e08f567d9 Starting to handle ztex disconnects and errors 2012-04-16 04:07:49 -07:00
nelisky
c5897683be changing the bitstream read and push strategy.
It seems that thread heap space is neither large nor consistent across OSs. Specifically on windows I couldn't get a large enough buffer for the whole bitstream in one go, so I'm reading incrementally now
2012-04-16 04:07:40 -07:00
nelisky
a35205d3f2 Some tweasks towards clean exit on error 2012-04-16 04:07:29 -07:00