Commit Graph

30 Commits

Author SHA1 Message Date
David Anderson 13a5b9bf3e change multiple-inclusion guard names to BOINC_FILENAME_H 2017-04-07 23:54:49 -07:00
David Anderson 9cf10b400a - GUI RPC: expose TIME_STATS info (e.g. on_frac) in
the binding of the get_state() RPC
- client: move client_start_time and previous_uptime
    from CLIENT_STATE to TIME_STATS,
    so that these are also visible in GUI RPC
- scheduler RPC: move uptime and previous_uptime
    into <time_stats>
- client: condition an RR simulation message on <rrsim_detail>
- boinccmd: show TIME_STATS info in --get_state
2013-03-01 16:08:52 +01:00
David Anderson f9a9c3090f - Client (Win): in file_size(), use _stat64() instead of stat().
Otherwise it doesn't work for files >= 2GB
	- Client: TIME_STATS::trim_stats_log() wasn't working because
		it's called in the constructor of TIME_STATS,
		which is called before we've done a chdir() to the data dir.

	Note: for this reason, no disk access should be done in constructors
	of global objects.  A quick scan found no instances of this.

svn path=/trunk/boinc/; revision=25846
2012-07-03 22:36:59 +00:00
David Anderson f8c1665722 - client: keep track of the fraction of time that
1) a network connection is available and
    2) network communication is allowed and
    3) CPU computation is allowed
- If an app version is marked as needs_network,
    use the above fraction in estimating its rate of progress
- replace "core client" with "client" in comments.
- scheduler: message tweaks


svn path=/trunk/boinc/; revision=25803
2012-06-26 20:30:56 +00:00
David Anderson 9d25481174 - scheduler: fix bug that tried to open plan class spec file
on each request.
- client: when showing how much work a scheduler request returned,
    scale by availability (as is done to show the amount of the request)
- client in account manager request, <not_started_dur> and
    <in_progress_dur> are in wall time, not run time
    (i.e. scale them by availability)

Note: there's some confusion in the code between runtime and wall time,
    where in general wall time = runtime / availability.
    New convention: let's use "runtime" for the former,
    and "duration" for the latter.

svn path=/trunk/boinc/; revision=25597
2012-04-25 04:10:29 +00:00
David Anderson 609d5665cc - client: pass XML_PARSER& rather than MIOFILE& to parse functions.
Preparatory to using new-style XML parsing everywhere.


svn path=/trunk/boinc/; revision=23975
2011-08-09 21:44:14 +00:00
David Anderson fdf15fb3af - client: maintain "gpu_active_frac" in addition to "active_frac"
(which really means CPU active)

svn path=/trunk/boinc/; revision=22283
2010-08-23 05:00:22 +00:00
David Anderson b0cb81159f - client: when looking for new file xfers to start,
favor those that are partially done
- client: fix crashing bug if a project is detached
    while an RSS feed fetch for it is in progress
- code cleanup: switch from /// back to // for comments
    (so much for doxygen)

svn path=/trunk/boinc/; revision=21041
2010-04-01 05:54:29 +00:00
David Anderson 79fb6e969e - Remove the notion of "CPU efficiency" from both client and server.
This wasn't being measured correctly for coproc/multithread apps,
    and its effect is now subsumed in DCF.

svn path=/trunk/boinc/; revision=16610
2008-12-03 19:50:06 +00:00
David Anderson f17c0879de - changed some comments for Doxygen
svn path=/trunk/boinc/; revision=16130
2008-10-04 23:44:24 +00:00
David Anderson 4f66bb4c95 - added copyright and license info to .C, .cpp, .h files
- scheduler: fix bug in adaptive replication:
    if send an unreplicated job to untrusted host,
    set both wu.target_nresults and wu.min_quorum to app.target_nresults.

svn path=/trunk/boinc/; revision=15762
2008-08-06 18:36:30 +00:00
David Anderson eeeb3b7951 - client: on startup, detect when the system clock has been set backwards,
and clear all timeout variables.
    This should fix the situation where, say:
    1) the user sets the system clock forward by a year;
    2) all projects get their min_rpc_time set;
    3) the user sets the system clock back to the correct time.
    Previously, BOINC would not do anything for a year.

    Note: a restart of BOINC is required to fix things.
    It would be harder to do this on the fly.

svn path=/trunk/boinc/; revision=15314
2008-05-28 19:15:44 +00:00
Rom Walton 6d6a802634 - CC: Move time_stats file creatio logic so that it is
created during gstate.init() instead of at class
        creation time. This way time_stats.log ends up in
        the data directory.
        
    client/
        client_state.C
        time_stats.C, .h

svn path=/trunk/boinc/; revision=14342
2007-12-02 15:57:08 +00:00
Frank Thomas 3bfc78b511 Updated the postal address of the Free Software Foundation in all license headers. See http://lists.ssl.berkeley.edu/pipermail/boinc_dev/2007-October/008939.html for reference.
svn path=/trunk/boinc/; revision=13804
2007-10-09 11:35:47 +00:00
David Anderson 3eaea4fb71 *** empty log message ***
svn path=/trunk/boinc/; revision=12347
2007-04-11 21:49:57 +00:00
David Anderson e1bb41e20a *** empty log message ***
svn path=/trunk/boinc/; revision=10611
2006-07-10 04:09:55 +00:00
David Anderson c1d7bb6ef6 *** empty log message ***
svn path=/trunk/boinc/; revision=6333
2005-06-13 16:51:14 +00:00
David Anderson 9c07f39813 *** empty log message ***
svn path=/trunk/boinc/; revision=6292
2005-06-07 19:22:50 +00:00
David Anderson 5d7760d7b2 *** empty log message ***
svn path=/trunk/boinc/; revision=5773
2005-04-04 21:14:49 +00:00
David Anderson 1935bf0c3d *** empty log message ***
svn path=/trunk/boinc/; revision=5239
2005-01-28 21:53:09 +00:00
David Anderson a89c95e910 *** empty log message ***
svn path=/trunk/boinc/; revision=5238
2005-01-28 21:46:41 +00:00
David Anderson 19dbc6af67 *** empty log message ***
svn path=/trunk/boinc/; revision=5237
2005-01-28 20:03:57 +00:00
David Anderson aa6b06a2a9 *** empty log message ***
svn path=/trunk/boinc/; revision=5236
2005-01-28 19:01:08 +00:00
David Anderson 435f8edd47 *** empty log message ***
svn path=/trunk/boinc/; revision=5161
2005-01-20 23:22:22 +00:00
David Anderson 37adf79297 *** empty log message ***
svn path=/trunk/boinc/; revision=4328
2004-10-14 22:01:05 +00:00
David Anderson 448c9ab56d *** empty log message ***
svn path=/trunk/boinc/; revision=4283
2004-10-01 22:00:39 +00:00
David Anderson 5ceaf4c43a *** empty log message ***
svn path=/trunk/boinc/; revision=3617
2004-06-16 23:16:08 +00:00
David Anderson 4df39e85e4 *** empty log message ***
svn path=/trunk/boinc/; revision=3543
2004-06-12 04:45:36 +00:00
David Anderson 537b48cc13 license change
svn path=/trunk/boinc/; revision=1405
2003-06-11 23:36:48 +00:00
David Anderson d5d4634807 Initial revision
svn path=/trunk/boinc/; revision=10
2002-04-30 22:22:54 +00:00