mirror of https://github.com/BOINC/boinc.git
client: task properties tweak
change "CPU time at last checkpoint" to "CPU time since checkpoint". Also win compile fix.
This commit is contained in:
parent
1fa9f485c0
commit
5e9f1d8ce1
|
@ -387,8 +387,8 @@ void CDlgItemProperties::renderInfos(RESULT* result) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (result->active_task) {
|
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"), FormatTime(result->current_cpu_time));
|
||||||
|
addProperty(_("CPU time since checkpoint"), FormatTime(result->current_cpu_time - result->checkpoint_cpu_time));
|
||||||
if (result->elapsed_time >= 0) {
|
if (result->elapsed_time >= 0) {
|
||||||
addProperty(_("Elapsed time"), FormatTime(result->elapsed_time));
|
addProperty(_("Elapsed time"), FormatTime(result->elapsed_time));
|
||||||
}
|
}
|
||||||
|
|
|
@ -856,7 +856,7 @@ int boinc_allocate_file(const char* path, double size) {
|
||||||
FILE* boinc_temp_file(
|
FILE* boinc_temp_file(
|
||||||
const char* dir, const char* prefix, char* temp_path, double size
|
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);
|
boinc_allocate_file(temp_path, size);
|
||||||
return boinc_fopen(temp_path, "wb");
|
return boinc_fopen(temp_path, "wb");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue