mirror of https://github.com/BOINC/boinc.git
MGR: Statistics and Disk tab panes: clear when disconnected from Client, update quickly when connecting to a (different) Client.
svn path=/trunk/boinc/; revision=15139
This commit is contained in:
parent
22ab4577f1
commit
b61533df1d
|
@ -3658,3 +3658,10 @@ David May 6 2008
|
||||||
|
|
||||||
sched/
|
sched/
|
||||||
sched_send.C
|
sched_send.C
|
||||||
|
|
||||||
|
Charlie May 7 2008
|
||||||
|
- MGR: Statistics and Disk tab panes: clear when disconnected from Client,
|
||||||
|
update quickly when connecting to a (different) Client.
|
||||||
|
|
||||||
|
clientgui/
|
||||||
|
MainDocument.cpp
|
||||||
|
|
|
@ -488,6 +488,7 @@ int CMainDocument::ResetState() {
|
||||||
host.clear_host_info();
|
host.clear_host_info();
|
||||||
results.clear();
|
results.clear();
|
||||||
ft.clear();
|
ft.clear();
|
||||||
|
statistics_status.clear();
|
||||||
disk_usage.clear();
|
disk_usage.clear();
|
||||||
proxy_info.clear();
|
proxy_info.clear();
|
||||||
|
|
||||||
|
@ -1516,8 +1517,9 @@ int CMainDocument::CachedDiskUsageUpdate() {
|
||||||
wxTimeSpan ts(wxDateTime::Now() - m_dtDiskUsageTimestamp);
|
wxTimeSpan ts(wxDateTime::Now() - m_dtDiskUsageTimestamp);
|
||||||
|
|
||||||
// don't get disk usage more than once per minute
|
// don't get disk usage more than once per minute
|
||||||
|
// unless we just connected to a client
|
||||||
//
|
//
|
||||||
if (ts.GetSeconds() > 60) {
|
if ((ts.GetSeconds() > 60) || disk_usage.projects.empty()) {
|
||||||
m_dtDiskUsageTimestamp = wxDateTime::Now();
|
m_dtDiskUsageTimestamp = wxDateTime::Now();
|
||||||
|
|
||||||
iRetVal = rpc.get_disk_usage(disk_usage);
|
iRetVal = rpc.get_disk_usage(disk_usage);
|
||||||
|
@ -1554,7 +1556,7 @@ int CMainDocument::CachedStatisticsStatusUpdate() {
|
||||||
|
|
||||||
if (IsConnected()) {
|
if (IsConnected()) {
|
||||||
wxTimeSpan ts(wxDateTime::Now() - m_dtStatisticsStatusTimestamp);
|
wxTimeSpan ts(wxDateTime::Now() - m_dtStatisticsStatusTimestamp);
|
||||||
if (ts.GetSeconds() > 0) {
|
if ((ts.GetSeconds() > 0) || statistics_status.projects.empty()) {
|
||||||
m_dtStatisticsStatusTimestamp = wxDateTime::Now();
|
m_dtStatisticsStatusTimestamp = wxDateTime::Now();
|
||||||
|
|
||||||
iRetVal = rpc.get_statistics(statistics_status);
|
iRetVal = rpc.get_statistics(statistics_status);
|
||||||
|
|
Loading…
Reference in New Issue