client: task properties tweak

change "CPU time at last checkpoint" to
"CPU time since checkpoint".
Also win compile fix.
This commit is contained in:
David Anderson 2016-07-24 23:55:58 -07:00
parent 1fa9f485c0
commit 5e9f1d8ce1
2 changed files with 2 additions and 2 deletions

View File

@ -387,8 +387,8 @@ void CDlgItemProperties::renderInfos(RESULT* result) {
);
}
if (result->active_task) {
addProperty(_("CPU time at last checkpoint"), FormatTime(result->checkpoint_cpu_time));
addProperty(_("CPU time"), FormatTime(result->current_cpu_time));
addProperty(_("CPU time since checkpoint"), FormatTime(result->current_cpu_time - result->checkpoint_cpu_time));
if (result->elapsed_time >= 0) {
addProperty(_("Elapsed time"), FormatTime(result->elapsed_time));
}

View File

@ -856,7 +856,7 @@ int boinc_allocate_file(const char* path, double size) {
FILE* boinc_temp_file(
const char* dir, const char* prefix, char* temp_path, double size
) {
GetTempFileName(dir, prefix, 0, temp_path);
GetTempFileNameA(dir, prefix, 0, temp_path);
boinc_allocate_file(temp_path, size);
return boinc_fopen(temp_path, "wb");
}