mirror of https://github.com/BOINC/boinc.git
- server: restore fpops/intops_cumulative to RESULT
(structure, not table) for AQUA - client, Windows: when wake up from hibernation, get the time before printing log msg svn path=/trunk/boinc/; revision=23784
This commit is contained in:
parent
da74e5caf2
commit
2177a6bd95
|
@ -3832,3 +3832,15 @@ David 29 Jun 2011
|
||||||
str_util.cpp
|
str_util.cpp
|
||||||
samples/wrappture/
|
samples/wrappture/
|
||||||
wrappture.cpp
|
wrappture.cpp
|
||||||
|
|
||||||
|
David 29 Jun 2011
|
||||||
|
- server: restore fpops/intops_cumulative to RESULT
|
||||||
|
(structure, not table) for AQUA
|
||||||
|
- client, Windows: when wake up from hibernation,
|
||||||
|
get the time before printing log msg
|
||||||
|
|
||||||
|
db/
|
||||||
|
boinc_db.h
|
||||||
|
client/
|
||||||
|
client_state.h
|
||||||
|
sysmon_win.cpp
|
||||||
|
|
|
@ -265,6 +265,8 @@ struct CLIENT_STATE {
|
||||||
inline void set_now() {
|
inline void set_now() {
|
||||||
double x = dtime();
|
double x = dtime();
|
||||||
if (x < (now-60)) {
|
if (x < (now-60)) {
|
||||||
|
// if time went backward significantly, clear delays
|
||||||
|
//
|
||||||
clear_absolute_times();
|
clear_absolute_times();
|
||||||
}
|
}
|
||||||
now = x;
|
now = x;
|
||||||
|
|
|
@ -139,6 +139,7 @@ static LRESULT CALLBACK WindowsMonitorSystemPowerWndProc(
|
||||||
|
|
||||||
// System is resuming from a normal power event
|
// System is resuming from a normal power event
|
||||||
case PBT_APMRESUMESUSPEND:
|
case PBT_APMRESUMESUSPEND:
|
||||||
|
gstate.set_now();
|
||||||
msg_printf(NULL, MSG_INFO, "Windows is resuming operations");
|
msg_printf(NULL, MSG_INFO, "Windows is resuming operations");
|
||||||
|
|
||||||
// Check for a proxy
|
// Check for a proxy
|
||||||
|
|
|
@ -549,6 +549,11 @@ struct RESULT {
|
||||||
// -1 anon platform, unknown resource type (relic)
|
// -1 anon platform, unknown resource type (relic)
|
||||||
// -2/-3/-4 anonymous platform (see variants above)
|
// -2/-3/-4 anonymous platform (see variants above)
|
||||||
|
|
||||||
|
// the following used by AQUA; delete when they don't need any more
|
||||||
|
//
|
||||||
|
double fpops_cumulative;
|
||||||
|
double intops_cumulative;
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue