user suspend request

svn path=/trunk/boinc/; revision=657
This commit is contained in:
Eric Heien 2002-11-25 19:44:15 +00:00
parent 7c281abd41
commit 2b0573d98b
2 changed files with 5 additions and 0 deletions

View File

@ -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) {

View File

@ -69,6 +69,7 @@ public:
double allowed_disk_usage();
unsigned int giveup_after;
bool user_idle;
bool suspend_requested;
private:
bool client_state_dirty;