Commit Graph

752 Commits

Author SHA1 Message Date
David Anderson 43d7563ce6 *** empty log message ***
svn path=/trunk/boinc/; revision=6242
2005-05-24 19:52:53 +00:00
Rom Walton 1c8907f027 *** empty log message ***
svn path=/trunk/boinc/; revision=6160
2005-05-15 05:51:54 +00:00
David Anderson 8857f357f7 *** empty log message ***
svn path=/trunk/boinc/; revision=6158
2005-05-14 19:45:24 +00:00
David Anderson e66d397f5c *** empty log message ***
svn path=/trunk/boinc/; revision=6136
2005-05-12 22:39:44 +00:00
Eric J. Korpela 90d49a7d91 Modified the BOINC_GETSOCKOPT_TYPE macro so it determines the proper type of
parameter 5 to getsockopt() by using the compiler.  The macro was in danger of
becoming an ever expanding list of case statements, since some platforms use
socklen_t, others use size_t, and still others use int.  Some aren't even
consistent from OS rev to OS rev.

A macro BOINC_SOCKLEN_T is set in config.h to indicate the proper type.  This
is typedef to be boinc_socklen_t in lib/network.h.  The special cases for
__APPLE__ and WIN32 can probably be removed at a later time.  Places where
socklen_t was used have been changed to boinc_socklen_t.

Also added double inclusion protection to network.h

svn path=/trunk/boinc/; revision=6055
2005-05-06 01:54:00 +00:00
Eric J. Korpela 5fa308a43d Fixed problem with including std_fixes.h when compiling code as C rather than
C++.

svn path=/trunk/boinc/; revision=6054
2005-05-06 00:36:07 +00:00
David Anderson 27aacefb20 *** empty log message ***
svn path=/trunk/boinc/; revision=6043
2005-05-05 18:59:55 +00:00
Bruce Allen 734dd4bdde Correcting the documentation
svn path=/trunk/boinc/; revision=6031
2005-05-05 05:23:45 +00:00
Bruce Allen f42b511669 Fixing the documentation
svn path=/trunk/boinc/; revision=6030
2005-05-05 05:18:40 +00:00
Jeff Cobb 8a90db98b0 *** empty log message ***
svn path=/trunk/boinc/; revision=6025
2005-05-04 18:49:02 +00:00
Bruce Allen 13d1f435d3 Added a utility function to 'print' a text description of errors
in error_numbers.h.  In the future, when adding a new error number
to this file, please update boincerror() in util.C to contain a
short text description of the error.

svn path=/trunk/boinc/; revision=5997
2005-05-01 13:10:53 +00:00
Bruce Allen 0082092c0b Added a utility function to 'print' a text description of errors
in error_numbers.h.  In the future, when adding a new error number
to this file, please update boincerror() in util.C to contain a
short text description of the error.

svn path=/trunk/boinc/; revision=5996
2005-05-01 13:03:18 +00:00
Bruce Allen 2c917cd32d Forgot that dtime() returns double with high precision time.
svn path=/trunk/boinc/; revision=5977
2005-04-29 17:44:08 +00:00
Bruce Allen dcd67f62c3 Fixed update_average() function to do the right thing when the time
between successive calls is small (zero seconds):

Consider the limit
as diff->0, using the first-order Taylor expansion of
exp(x)=1+x+O(x^2).
So to the lowest order in diff:
weight = 1 - diff ln(2) / half_life
so one has
avg += (1-weight)*(work/diff_days)
avg += [diff*ln(2)/half_life] * (work*SECONDS_PER_DAY/diff)
notice that diff cancels out, leaving
avg += [ln(2)/half_life] * work*SECONDS_PER_DAY

svn path=/trunk/boinc/; revision=5976
2005-04-29 16:10:45 +00:00
David Anderson 55d3b1c3b3 *** empty log message ***
svn path=/trunk/boinc/; revision=5964
2005-04-28 23:30:03 +00:00
David Anderson 58e3317afb *** empty log message ***
svn path=/trunk/boinc/; revision=5963
2005-04-28 23:22:14 +00:00
David Anderson 64b871f819 *** empty log message ***
svn path=/trunk/boinc/; revision=5962
2005-04-28 23:19:58 +00:00
Rom Walton 6d23cf3586 *** empty log message ***
svn path=/trunk/boinc/; revision=5955
2005-04-28 17:43:13 +00:00
David Anderson b8e12020e9 *** empty log message ***
svn path=/trunk/boinc/; revision=5942
2005-04-27 06:55:28 +00:00
David Anderson fcc0732098 *** empty log message ***
svn path=/trunk/boinc/; revision=5917
2005-04-21 23:53:39 +00:00
David Anderson 33baaccab7 *** empty log message ***
svn path=/trunk/boinc/; revision=5897
2005-04-19 20:53:04 +00:00
David Anderson 65c91c3de7 *** empty log message ***
svn path=/trunk/boinc/; revision=5893
2005-04-19 19:50:58 +00:00
David Anderson 5a844bff5d *** empty log message ***
svn path=/trunk/boinc/; revision=5885
2005-04-18 05:37:31 +00:00
David Anderson bdfa65415d *** empty log message ***
svn path=/trunk/boinc/; revision=5883
2005-04-18 04:32:22 +00:00
David Anderson a714444b12 *** empty log message ***
svn path=/trunk/boinc/; revision=5878
2005-04-16 21:33:34 +00:00
Rom Walton 10d54b1be7 *** empty log message ***
svn path=/trunk/boinc/; revision=5875
2005-04-16 04:01:01 +00:00
Rom Walton a323c4cdf8 *** empty log message ***
svn path=/trunk/boinc/; revision=5868
2005-04-15 20:49:23 +00:00
David Anderson e17f856eeb *** empty log message ***
svn path=/trunk/boinc/; revision=5867
2005-04-15 20:07:42 +00:00
Rom Walton 3d371a7a27 *** empty log message ***
svn path=/trunk/boinc/; revision=5864
2005-04-15 19:14:28 +00:00
Rom Walton 907a7cb7f0 *** empty log message ***
svn path=/trunk/boinc/; revision=5863
2005-04-15 19:01:25 +00:00
David Anderson ff226313c3 *** empty log message ***
svn path=/trunk/boinc/; revision=5862
2005-04-15 18:50:11 +00:00
Rom Walton 94f469db26 *** empty log message ***
svn path=/trunk/boinc/; revision=5861
2005-04-15 18:45:06 +00:00
Rom Walton 925f06f829 *** empty log message ***
svn path=/trunk/boinc/; revision=5858
2005-04-15 18:08:05 +00:00
Rom Walton c2f9448fde *** empty log message ***
svn path=/trunk/boinc/; revision=5857
2005-04-15 17:52:42 +00:00
Rom Walton 10b314a1de *** empty log message ***
svn path=/trunk/boinc/; revision=5847
2005-04-13 22:38:37 +00:00
David Anderson 534ead4118 *** empty log message ***
svn path=/trunk/boinc/; revision=5846
2005-04-13 18:38:55 +00:00
Rom Walton 9471802db1 *** empty log message ***
svn path=/trunk/boinc/; revision=5844
2005-04-12 23:58:01 +00:00
David Anderson 1b0439c9a9 *** empty log message ***
svn path=/trunk/boinc/; revision=5840
2005-04-12 21:54:40 +00:00
David Anderson 76e15132fc *** empty log message ***
svn path=/trunk/boinc/; revision=5828
2005-04-11 19:29:36 +00:00
Bruce Allen 06a2ff4e4e Remove redundant EXTRA_DIST
svn path=/trunk/boinc/; revision=5823
2005-04-11 08:04:03 +00:00
David Anderson 5eac73217c *** empty log message ***
svn path=/trunk/boinc/; revision=5822
2005-04-11 07:06:52 +00:00
David Anderson 971b58e501 *** empty log message ***
svn path=/trunk/boinc/; revision=5821
2005-04-11 05:47:41 +00:00
David Anderson ac5f4b014c *** empty log message ***
svn path=/trunk/boinc/; revision=5819
2005-04-10 18:36:12 +00:00
David Anderson 50bf271c72 *** empty log message ***
svn path=/trunk/boinc/; revision=5817
2005-04-10 00:16:20 +00:00
David Anderson b24e4240d7 *** empty log message ***
svn path=/trunk/boinc/; revision=5815
2005-04-09 02:21:11 +00:00
David Anderson dc6d4d169a *** empty log message ***
svn path=/trunk/boinc/; revision=5814
2005-04-09 00:39:31 +00:00
David Anderson cd1dccd849 *** empty log message ***
svn path=/trunk/boinc/; revision=5813
2005-04-08 23:40:50 +00:00
David Anderson d9672603eb *** empty log message ***
svn path=/trunk/boinc/; revision=5812
2005-04-08 22:52:40 +00:00
Rom Walton 59614e090e *** empty log message ***
svn path=/trunk/boinc/; revision=5799
2005-04-08 04:23:37 +00:00
David Anderson 67f6558e04 *** empty log message ***
svn path=/trunk/boinc/; revision=5785
2005-04-06 19:41:31 +00:00