mirror of https://github.com/BOINC/boinc.git
user suspend request
svn path=/trunk/boinc/; revision=657
This commit is contained in:
parent
7c281abd41
commit
2b0573d98b
|
@ -56,6 +56,7 @@ CLIENT_STATE::CLIENT_STATE() {
|
|||
max_transfer_rate = 9999999;
|
||||
max_bytes = 0;
|
||||
user_idle = true;
|
||||
suspend_requested = false;
|
||||
}
|
||||
|
||||
int CLIENT_STATE::init() {
|
||||
|
@ -214,6 +215,9 @@ int CLIENT_STATE::check_suspend_activities() {
|
|||
if (!user_idle) {
|
||||
should_suspend = true;
|
||||
}
|
||||
if(suspend_requested) {
|
||||
should_suspend = true;
|
||||
}
|
||||
|
||||
if (should_suspend) {
|
||||
if (!activities_suspended) {
|
||||
|
|
|
@ -69,6 +69,7 @@ public:
|
|||
double allowed_disk_usage();
|
||||
unsigned int giveup_after;
|
||||
bool user_idle;
|
||||
bool suspend_requested;
|
||||
|
||||
private:
|
||||
bool client_state_dirty;
|
||||
|
|
Loading…
Reference in New Issue