diff --git a/checkin_notes b/checkin_notes
index 5939fdf9b4..fbf6925e67 100755
--- a/checkin_notes
+++ b/checkin_notes
@@ -8843,3 +8843,13 @@ Charlie 15 Aug 2006
client/
cpu_sched.C
cs_scheduler.C
+
+David 15 Aug 2006
+ - core client: removed message
+ - Manager: changed one wxDateTime to double (should change all)
+
+ client/
+ cs_scheduler.C
+ clientgui/
+ MainDocument.cpp,h
+
diff --git a/client/cs_scheduler.C b/client/cs_scheduler.C
index 2625704415..9c47642200 100644
--- a/client/cs_scheduler.C
+++ b/client/cs_scheduler.C
@@ -175,11 +175,6 @@ PROJECT* CLIENT_STATE::next_project_need_work() {
double work_on_prospect=0;
unsigned int i;
double prrs = potentially_runnable_resource_share();
- if (log_flags.work_fetch_debug) {
- msg_printf(0, MSG_INFO,
- "next_project_need_work: begin"
- );
- }
for (i=0; i
@@ -291,7 +294,7 @@ CMainDocument::CMainDocument() {
m_bCachedStateLocked = false;
m_dtCachedStateLockTimestamp = wxDateTime::Now();
m_dtCachedStateTimestamp = wxDateTime((time_t)0);
- cc_status_timestamp = wxDateTime((time_t)0);
+ cc_status_timestamp = dtime();
m_dtCachedActivityRunModeTimestamp = wxDateTime((time_t)0);
m_dtCachedNetworkRunModeTimestamp = wxDateTime((time_t)0);
m_dtCachedProjecStatusTimestamp = wxDateTime((time_t)0);
@@ -304,25 +307,6 @@ CMainDocument::CMainDocument() {
CMainDocument::~CMainDocument() {
- m_dtStatisticsStatusTimestamp = wxDateTime::Now();
- m_dtResourceStatusTimestamp = wxDateTime::Now();
- m_dtFileTransfersTimestamp = wxDateTime::Now();
- m_dtCachedResultsTimestamp = wxDateTime::Now();
- m_dtCachedProjecStatusTimestamp = wxDateTime::Now();
- m_dtCachedNetworkRunModeTimestamp = wxDateTime::Now();
- m_dtCachedActivityRunModeTimestamp = wxDateTime::Now();
- cc_status_timestamp = wxDateTime::Now();
- m_dtCachedStateTimestamp = wxDateTime::Now();
- m_dtCachedStateLockTimestamp = wxDateTime::Now();
- m_bCachedStateLocked = false;
-
- m_iMessageSequenceNumber = 0;
-
- m_fProjectTotalResourceShare = 0.0;
-
- m_iCachedActivityRunMode = 0;
- m_iCachedNetworkRunMode = 0;
-
#ifdef __WIN32__
WSACleanup();
#endif
@@ -561,9 +545,10 @@ int CMainDocument::SetNetworkRunMode(int iMode) {
int CMainDocument::get_cc_status(CC_STATUS& ccs) {
int iRetVal = 0;
- wxTimeSpan ts(wxDateTime::Now() - cc_status_timestamp);
- if (ts.GetSeconds() > 0.5) {
- cc_status_timestamp = wxDateTime::Now();
+ double now = dtime();
+ double diff = now - cc_status_timestamp;
+ if (diff > 0.5) {
+ cc_status_timestamp = now;
if (IsConnected()) {
iRetVal = rpc.get_cc_status(ccs);
diff --git a/clientgui/MainDocument.h b/clientgui/MainDocument.h
index 216ce27155..3340914ee2 100644
--- a/clientgui/MainDocument.h
+++ b/clientgui/MainDocument.h
@@ -83,7 +83,7 @@ private:
wxDateTime m_dtCachedActivityRunModeTimestamp;
wxDateTime m_dtCachedNetworkRunModeTimestamp;
- wxDateTime cc_status_timestamp;
+ double cc_status_timestamp;
int m_iCachedActivityRunMode;
int m_iCachedNetworkRunMode;
CC_STATUS cc_status;