Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/BOINC/boinc
Browse files Browse the repository at this point in the history
  • Loading branch information
romw committed Jan 30, 2016
2 parents 070db37 + f5784c0 commit 6c7d72a
Show file tree
Hide file tree
Showing 23 changed files with 62 additions and 42 deletions.
10 changes: 10 additions & 0 deletions client/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,12 +454,22 @@ void ACTIVE_TASK_SET::get_memory_usage() {

for (i=0; i<cc_config.exclusive_apps.size(); i++) {
if (app_running(pm, cc_config.exclusive_apps[i].c_str())) {
if (log_flags.mem_usage_debug) {
msg_printf(NULL, MSG_INFO,
"[mem_usage] exclusive app %s is running", cc_config.exclusive_apps[i].c_str()
);
}
exclusive_app_running = gstate.now;
break;
}
}
for (i=0; i<cc_config.exclusive_gpu_apps.size(); i++) {
if (app_running(pm, cc_config.exclusive_gpu_apps[i].c_str())) {
if (log_flags.mem_usage_debug) {
msg_printf(NULL, MSG_INFO,
"[mem_usage] exclusive GPU app %s is running", cc_config.exclusive_gpu_apps[i].c_str()
);
}
exclusive_gpu_app_running = gstate.now;
break;
}
Expand Down
11 changes: 9 additions & 2 deletions client/app_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1171,8 +1171,15 @@ void ACTIVE_TASK_SET::suspend_all(int reason) {
continue;
}

if (cc_config.dont_suspend_nci && atp->result->non_cpu_intensive()) {
continue;
// special cases for non-CPU-intensive apps
//
if (atp->result->non_cpu_intensive()) {
if (cc_config.dont_suspend_nci) {
continue;
}
if (reason == SUSPEND_REASON_BATTERIES) {
continue;
}
}

// handle CPU throttling separately
Expand Down
3 changes: 2 additions & 1 deletion client/client_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ extern THREAD throttle_thread;
#define GUI_HTTP_POLL_PERIOD 1.0

#define MEMORY_USAGE_PERIOD 10
// computer memory usage and check for exclusive apps this often

//////// WORK FETCH

Expand Down Expand Up @@ -623,7 +624,7 @@ extern THREAD throttle_thread;

//////// MISC

#define EXCLUSIVE_APP_WAIT 30
#define EXCLUSIVE_APP_WAIT 5
// if "exclusive app" feature used,
// wait this long after app exits before restarting jobs

Expand Down
6 changes: 3 additions & 3 deletions client/cs_prefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ int CLIENT_STATE::check_suspend_processing() {
return SUSPEND_REASON_NO_RECENT_INPUT;
}
}
if (now - exclusive_app_running < EXCLUSIVE_APP_WAIT) {
if (now - exclusive_app_running < MEMORY_USAGE_PERIOD + EXCLUSIVE_APP_WAIT) {
return SUSPEND_REASON_EXCLUSIVE_APP_RUNNING;
}
if (global_prefs.suspend_cpu_usage && non_boinc_cpu_usage*100 > global_prefs.suspend_cpu_usage) {
Expand Down Expand Up @@ -321,7 +321,7 @@ int CLIENT_STATE::check_suspend_processing() {
gpu_suspend_reason = SUSPEND_REASON_USER_REQ;
break;
default:
if (now - exclusive_gpu_app_running < EXCLUSIVE_APP_WAIT) {
if (now - exclusive_gpu_app_running < MEMORY_USAGE_PERIOD + EXCLUSIVE_APP_WAIT) {
gpu_suspend_reason = SUSPEND_REASON_EXCLUSIVE_APP_RUNNING;
break;
}
Expand Down Expand Up @@ -477,7 +477,7 @@ void CLIENT_STATE::check_suspend_network() {
if (!recent_rpc) network_suspended = true;
network_suspend_reason = SUSPEND_REASON_TIME_OF_DAY;
}
if (now - exclusive_app_running < EXCLUSIVE_APP_WAIT) {
if (now - exclusive_app_running < MEMORY_USAGE_PERIOD + EXCLUSIVE_APP_WAIT) {
file_xfers_suspended = true;
if (!recent_rpc) network_suspended = true;
network_suspend_reason = SUSPEND_REASON_EXCLUSIVE_APP_RUNNING;
Expand Down
4 changes: 4 additions & 0 deletions client/hostinfo_unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2090,6 +2090,7 @@ bool xss_idle(long idle_threshold) {
"[idle_detection] XScreenSaver extension not available for DISPLAY '%s'.",
it->c_str());
}
XCloseDisplay(disp);
continue;
}

Expand All @@ -2098,6 +2099,9 @@ bool xss_idle(long idle_threshold) {
XScreenSaverQueryInfo(disp, DefaultRootWindow(disp), xssInfo);
idle_time = xssInfo->idle;

// Close the connection to the XServer
XCloseDisplay(disp);

// convert from milliseconds to seconds
idle_time = idle_time / 1000;

Expand Down
6 changes: 2 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1245,10 +1245,8 @@ AC_SUBST(CLIENTLIBS)

if test "${enable_debug}" = "yes" ; then
CLIENTGUIFLAGS="${CLIENTGUIFLAGS} -D_DEBUG -DDEBUG"
fi

# disable wxWidgets debug support which is by default enabled since 2.9.1
if test "${enable_wx_debug}" = "no" ; then
else
# disable wxWidgets debug support which is by default enabled since 2.9.1
CLIENTGUIFLAGS="${CLIENTGUIFLAGS} -DNDEBUG"
fi

Expand Down
1 change: 1 addition & 0 deletions db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ create table team (
ping_user integer not null default 0,
ping_time integer unsigned not null default 0,
joinable tinyint not null default 1,
mod_time timestamp default current_timestamp on update current_timestamp,
primary key (id)
) engine=MyISAM;

Expand Down
22 changes: 11 additions & 11 deletions doc/projects.inc
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ $mixed = array(
"http://casathome.ihep.ac.cn/",
tra("Chinese Academy of Sciences"),
tra("Physics, biochemistry, and others"),
tra("The objective of CAS@home is to encourage and assist scientists in China to adopt the technologies of volunteer computing and volunteer thinking for their research."),
tra("CAS@home is hosted by the Computing Centre of the Institute of High Energy Physics (IHEP), Chinese Academy of Sciences, for Chinese scientists with projects studying protein structure, nanotechnology, cancer genomics, and high energy physics."),
"cas_at_home.jpg",
"",
tra("Help Chinese researchers")
Expand All @@ -471,16 +471,16 @@ $mixed = array(
"",
tra("Do research in math, physics, and evolution")
),
array(
"EDGeS@Home",
"http://home.edges-grid.eu/home/",
tra("MTA-SZTAKI Laboratory of Parallel and Distributed Systems (Hungary)"),
tra("European research projects"),
tra("The EDGeS@Home Beta project integrates volunteer computing into the service grid network of Europe by allowing service grids to send workunits to be processed by the volunteers of this project. The scientific projects covered by the project include math, physics, biology, etc."),
"logo_edges.png",
"",
tra("Help European researchers")
),
// array(
// "EDGeS@Home",
// "http://home.edges-grid.eu/home/",
// tra("MTA-SZTAKI Laboratory of Parallel and Distributed Systems (Hungary)"),
// tra("European research projects"),
// tra("The EDGeS@Home Beta project integrates volunteer computing into the service grid network of Europe by allowing service grids to send workunits to be processed by the volunteers of this project. The scientific projects covered by the project include math, physics, biology, etc."),
// "logo_edges.png",
// "",
// tra("Help European researchers")
// ),
array(
"Ibercivis",
"http://registro.ibercivis.es/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ core = 6.x
version = "6.x-2.4-dev-boinc-1"
core = "6.x"
project = "wysiwyg"
datestamp = "1452920286"
datestamp = "1453962141"
2 changes: 1 addition & 1 deletion html/inc/team.inc
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ function display_team_members($team, $offset, $sort_by) {
}
echo "<tr class=row1>
<td align=left>$j) $x
";
</td>";
if (!no_computing()) {
echo "
<td align=right>$user_total_credit</td>
Expand Down
7 changes: 6 additions & 1 deletion html/ops/db_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -1015,14 +1015,18 @@ function workunit_big_ids() {
");
}

// run this is your projects uses HTTPS, to patch up the gravatar URLs
// run this if your projects uses HTTPS, to patch up the gravatar URLs
//
function gravatar_update() {
do_query("update forum_preferences
SET avatar = REPLACE(avatar, 'http://www.gravatar.com', '//www.gravatar.com')
");
}

function update_1_27_2016() {
do_query("alter table team add column mod_time timestamp default current_timestamp on update current_timestamp");
}

// Updates are done automatically if you use "upgrade".
//
// If you need to do updates manually,
Expand Down Expand Up @@ -1068,6 +1072,7 @@ function gravatar_update() {
array(27011, "update_8_15_2014"),
array(27012, "update_10_8_2014"),
array(27013, "update_4_15_2015"),
array(27014, "update_1_27_2016"),
);

?>
6 changes: 3 additions & 3 deletions lib/cc_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ void CC_CONFIG::defaults() {
allow_multiple_clients = false;
allow_remote_gui_rpc = false;
alt_platforms.clear();
client_download_url = "http://boinc.berkeley.edu/download.php";
client_download_url = "https://boinc.berkeley.edu/download.php";
client_new_version_text = "";
client_version_check_url = "http://boinc.berkeley.edu/download.php?xml=1";
client_version_check_url = "https://boinc.berkeley.edu/download.php?xml=1";
config_coprocs.clear();
disallow_attach = false;
dont_check_file_sizes = false;
Expand Down Expand Up @@ -237,7 +237,7 @@ void CC_CONFIG::defaults() {
max_stdout_file_size = 0;
max_tasks_reported = 0;
ncpus = -1;
network_test_url = "http://www.google.com/";
network_test_url = "https://www.google.com/";
no_alt_platform = false;
no_gpus = false;
no_info_fetch = false;
Expand Down
Binary file added locale/az/BOINC-Setup.mo
Binary file not shown.
Binary file modified locale/fr/BOINC-Client.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions locale/fr/BOINC-Drupal.po
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ msgid ""
msgstr ""
"Project-Id-Version: BOINC\n"
"POT-Creation-Date: 2015-12-15 12:43+0000\n"
"PO-Revision-Date: 2016-01-21 18:08+0000\n"
"PO-Revision-Date: 2016-01-22 21:15+0000\n"
"Last-Translator: Philippe Janocha\n"
"Language-Team: French (http://www.transifex.com/boinc/boinc/language/fr/)\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -1580,7 +1580,7 @@ msgid "Edit profile"
msgstr "Éditer le profil"

msgid "Edit the content of this profile"
msgstr "Editer le contenu de ce profil"
msgstr "Éditer le contenu de ce profil"

msgid "Remove profile"
msgstr "Supprimer le profil"
Expand Down
Binary file modified locale/fr/BOINC-Manager.mo
Binary file not shown.
Binary file modified locale/it_IT/BOINC-Manager.mo
Binary file not shown.
Binary file modified locale/it_IT/BOINC-Web.mo
Binary file not shown.
Binary file modified locale/lv/BOINC-Manager.mo
Binary file not shown.
Binary file modified locale/sk/BOINC-Manager.mo
Binary file not shown.
6 changes: 3 additions & 3 deletions locale/sk/BOINC-Manager.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# aceman, 2015
# aceman, 2015-2016
# Michal, 2015
msgid ""
msgstr ""
"Project-Id-Version: BOINC\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-16 17:27-0500\n"
"PO-Revision-Date: 2015-11-30 23:20+0000\n"
"PO-Revision-Date: 2016-01-25 02:52+0000\n"
"Last-Translator: aceman\n"
"Language-Team: Slovak (http://www.transifex.com/boinc/boinc/language/sk/)\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -467,7 +467,7 @@ msgstr "Vybrať stĺpce na zobrazenie"

#: clientgui/AdvancedFrame.cpp:621
msgid "Event Log options...\tCtrl+Shift+F"
msgstr "Nastavenia záznamu udalostí...⇥Ctrl+Shift+F"
msgstr "Nastavenia záznamu udalostí...\tCtrl+Shift+F"

#: clientgui/AdvancedFrame.cpp:622
msgid "Enable or disable various diagnostic messages"
Expand Down
6 changes: 0 additions & 6 deletions m4/boinc_wxwidgets.m4
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ AC_DEFUN([BOINC_OPTIONS_WXWIDGETS],[
[enable_unicode="$enableval"],
[])
AC_ARG_ENABLE(wx-debug,
AS_HELP_STRING([--disable-wx-debug],
[disable wxWidgets debug support]),
[enable_wx_debug="$enableval"],
[enable_wx_debug=yes])
AM_OPTIONS_WXCONFIG
AM_PATH_WXCONFIG($1, [_ac_cv_have_wxwidgets=yes], [_ac_cv_have_wxwidgets=no])
AC_CACHE_CHECK([if wxWidgets works],[ac_cv_have_wxwidgets],
Expand Down
8 changes: 4 additions & 4 deletions win_build/installerv2/redist/WCG/cc_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<log_flags>
</log_flags>
<options>
<client_download_url>http://www.worldcommunitygrid.org/reg/ms/viewDownloadAgain.do</client_download_url>
<client_version_check_url>http://www.worldcommunitygrid.org/download_all.php?xml=1</client_version_check_url>
<network_test_url>http://www.ibm.com</network_test_url>
<client_download_url>https://www.worldcommunitygrid.org/reg/ms/viewDownloadAgain.do</client_download_url>
<client_version_check_url>https://www.worldcommunitygrid.org/download_all.php?xml=1</client_version_check_url>
<network_test_url>https://www.ibm.com</network_test_url>
</options>
</cc_config>
</cc_config>

0 comments on commit 6c7d72a

Please sign in to comment.