Commit graph

22 commits

Author SHA1 Message Date
Andrew Gaul
28bc0a1bea Plug memory leaks during unit tests
Found via Valgrind.
2019-10-30 20:58:19 -07:00
Andrew Gaul
110ccb5814 Address Valgrind warnings during unit tests 2019-10-30 16:04:33 -07:00
Andrew Gaul
dd2c305593 Change default polling_interval to 1
This allows mbpfan to react more quickly to changing workloads and
avoid CPU throttling.  Also change unit test expectations.
Fixes #159.
2019-01-18 11:34:07 -08:00
mikaelbjoern
50f3a67ab4 Add support for many processors (not just cores)
Add an outer loop in mbpfan.c:retrieve_sensors to loop over all coretemp
directories. Also increase hard-coded limits from 10 to 12 or 16 since
the temp endpoints are sometimes indexed that high.
    
For example, this is required for supporting a Mac Pro with two processors
of 16 cores, requiring
/sys/devices/platform/coretemp.0/hwmon/hwmon0/temp{1..12}
/sys/devices/platform/coretemp.1/hwmon/hwmon1/temp{1..12}
    
Fixes #152.
2019-01-18 11:26:11 -08:00
Andrew Gaul
1716d9d877 Update unit tests for fan speed auto-detection
Fixes #164.  References #114.
2018-09-13 10:29:48 -07:00
Andrew Gaul
b0cdfd4c27 Propagate exit code from unit tests
Also flag errors more clearly.  References #164.
2018-09-13 10:06:52 -07:00
Andrew Gaul
ce3218407f Check root privileges before running tests
References #155.
2018-08-21 03:35:27 +05:30
Daniel Graziotin
1ee0e1f1fa [fix #92] support for CentOS w/ Linux 3.10.0 but new sensors path 2017-04-02 16:59:50 +00:00
Robert Musial
a99aaad680 Changes to be committed:
modified:   AUTHORS
Updated personal info.

	modified:   Makefile
Beginning work to clean up Makefile. The original makefile appeared
to be checking if the system was Windows NT. Since this is for GNU/
Linux, that was removed. Also all of the code is C, but the
Makefile was calling the C++ compiler to hide bool issues and
missing typedefs (which C++ is ok with but C is not).

	modified:   src/daemon.c
Added structs, added stdbool.h

	modified:   src/main.c
Added stdbool.h

	modified:   src/mbpfan.c
Added stdbool.h

	modified:   src/minunit.c
Added stdbool.h
2017-03-19 13:43:55 -04:00
Robert Musial
6e010e4116 added return 0; to line 106 to prevent core dump when compiled with clang 2016-11-18 14:16:59 -05:00
Daniel Graziotin
ffd07561b5 [Fix #85] correct test cases for settings 2016-08-29 10:00:27 +02:00
Gianguido Sorà
2f8946d0ac let the test pass on kernel >= 4 2015-05-05 16:54:41 +02:00
Daniel Graziotin
a034b3f03b Fixes #28 2014-06-23 10:24:03 +02:00
Daniel Graziotin
d14c7107e8 Almost done with #38. 2014-06-22 16:48:44 +02:00
Daniel Graziotin
a2dacfde05 Fixes #4. Adds some tests for #28 2012-11-18 22:16:49 +01:00
Daniel Graziotin
33a3710995 Fixes #27 2012-11-12 11:48:05 +01:00
Daniel Graziotin
45755d6228 First attempt to fix #24 2012-10-24 11:13:25 +02:00
Daniel Graziotin
1f8131bd9d Fixes #18. Seems ready for v1.4.0 2012-08-23 22:32:49 +02:00
Daniel Graziotin
03ac20500b Added Gentoo support and enhanced README.md 2012-08-23 11:08:17 +02:00
Daniel Graziotin
fcf18f52cf Cleanup, reformatting, better Makefile and better README 2012-08-22 15:05:52 +02:00
Daniel Graziotin
4672a0fbfe Fixes #12 2012-07-03 10:30:40 +02:00
Daniel Graziotin
1078814133 Fixes #10 2012-06-16 11:02:48 +02:00