- client: day boundary for "transfer at most X in N days"

is midnight local time, not UTC
- update translation templates

svn path=/trunk/boinc/; revision=21362
This commit is contained in:
David Anderson 2010-05-03 17:20:44 +00:00
parent 82a3871ec2
commit 6fbfee024b
6 changed files with 443 additions and 456 deletions

View File

@ -3309,3 +3309,14 @@ David 30 Apr 2010
clientgui/
ViewTransfers.cpp
ViewWork.cpp
David 3 May 2010
- client: day boundary for "transfer at most X in N days"
is midnight local time, not UTC
- update translation templates
sched/
sched_send.cpp
client/
sim.cpp
net_stats.cpp

View File

@ -291,8 +291,12 @@ void DAILY_XFER::write(FILE* f) {
);
}
inline int current_day() {
return (int)((gstate.now-gstate.host_info.timezone)/86400);
}
DAILY_XFER* DAILY_XFER_HISTORY::today() {
int d = (int)(gstate.now/86400);
int d = current_day();
for (unsigned int i=0; i<daily_xfers.size(); i++) {
DAILY_XFER& dx = daily_xfers[i];
if (dx.when == d) {
@ -325,7 +329,7 @@ void DAILY_XFER_HISTORY::init() {
bool is_tag;
char tag[256];
int d = (int)(gstate.now/86400);
int d = current_day();
if (!xp.parse_start("daily_xfers")) {
fclose(f);
@ -374,7 +378,7 @@ void DAILY_XFER_HISTORY::write_state() {
}
void DAILY_XFER_HISTORY::totals(int ndays, double& up, double& down) {
int d = (int)(gstate.now/86400) - ndays;
int d = (current_day - ndays);
up = down = 0;
for (unsigned int i=0; i<daily_xfers.size(); i++) {
DAILY_XFER& dx = daily_xfers[i];

View File

@ -558,9 +558,11 @@ char* colors[] = {
static int outfile_num=0;
bool uses_coproc(RESULT* rp, COPROC* cp) {
return false;
}
bool using_instance(RESULT*, int) {
return false;
}
void gpu_header() {

File diff suppressed because it is too large Load Diff

View File

@ -9,22 +9,39 @@ msgid ""
msgstr ""
"Project-Id-Version: BOINC $Id$\n"
"Report-Msgid-Bugs-To: BOINC translation team <boinc_loc@ssl.berkeley.edu>\n"
"POT-Creation-Date: 2010-01-19 22:34 PST\n"
"POT-Creation-Date: 2010-05-03 10:16 PDT\n"
"Last-Translator: Generated automatically from source files\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-SourceCharset: utf-8\n"
#: versions.inc:6
msgid "The current release is known to work with these Linux versions:"
msgstr ""
#: versions.inc:14
msgid ""
"For other Linux versions, check if a BOINC package is offered by your Linux "
"distribution."
msgstr ""
#: versions.inc:25
msgid ""
"Alternatively, download the %1BOINC client for older Linux versions%2. This "
"doesn't have a graphical interface, but it should work on all Linux systems, "
"both x86 and x64."
msgstr ""
#: docutil.php:21
msgid "Search"
msgstr ""
#: docutil.php:101
#: docutil.php:102
msgid "Return to BOINC main page"
msgstr ""
#: docutil.php:112
#: docutil.php:113
#, php-format
msgid "This page is %stranslatable%s."
msgstr ""
@ -289,12 +306,12 @@ msgstr ""
msgid "Browser default"
msgstr ""
#: index.php:254
#: index.php:258
#, php-format
msgid ""
"Open-source software for %svolunteer computing%s and %sgrid computing%s."
msgstr ""
#: index.php:267
#: index.php:271
msgid "BOINC is based at The University of California, Berkeley"
msgstr ""

View File

@ -1333,14 +1333,14 @@ static void explain_to_user() {
if (g_request->core_client_version>41900) {
sprintf(helpful,
"(won't finish in time) "
"BOINC runs %.1f%% of time, computation enabled %.1f%% of that",
100.0*g_reply->host.on_frac, 100.0*g_reply->host.active_frac
"BOINC runs %.1f%% of the time; computation is enabled %.1f%% of that",
100*g_reply->host.on_frac, 100*g_reply->host.active_frac
);
} else {
sprintf(helpful,
"(won't finish in time) "
"Computer available %.1f%% of time",
100.0*g_reply->host.on_frac
"Computer available %.1f%% of the time",
100*g_reply->host.on_frac
);
}
g_reply->insert_message(helpful, "high");