aMule Bug Tracker - aMule
View Issue Details
0000900aMulePreferencespublic2006-05-22 19:402008-07-14 17:44
JusTiCe8 
GonoszTopi 
normalfeaturealways
closedopen 
SVN 
 
Any
0000900: amuled saves preferences files every minute, it should not do that
I try to change something in config file and I discover that amuled saves it every minute from the memory content.
So it's make impossible to add/change something whithout stop/restart daemon.
amuled should:
- save config every x time unit accroding to a key in preferences
- reload it's config on demand like lots of usual daemons
No tags attached.
Issue History
2006-05-22 19:40JusTiCe8New Issue
2006-05-22 19:40JusTiCe8Operating System => Any
2006-05-26 12:32JusTiCe8Note Added: 0002007
2006-05-27 10:35KryNote Added: 0002008
2006-05-29 11:22JusTiCe8Note Added: 0002010
2006-05-29 11:22JusTiCe8Note Added: 0002011
2006-05-29 11:23JusTiCe8Note Added: 0002012
2006-05-29 17:45JusTiCe8Note Deleted: 0002011
2006-05-29 17:45JusTiCe8Note Deleted: 0002010
2006-05-30 07:18KryNote Added: 0002014
2006-09-09 09:33GonoszTopiStatusnew => assigned
2006-09-09 09:33GonoszTopiAssigned To => GonoszTopi
2008-07-14 17:44WuischkeStatusassigned => closed

Notes
(0002007)
JusTiCe8   
2006-05-26 12:32   
in amule.cpp : void CamuleApp::OnCoreTimer(CTimerEvent& WXUNUSED(evt))

if (msCur-msPrevSave >= 60000) {
        msPrevSave = msCur;
        wxString buffer;

// Save total upload/download to preferences
        wxConfigBase* cfg = wxConfigBase::Get();
        buffer = CFormat(wxT("%llu")) % (theStats::GetSessionReceivedBytes() + thePrefs::GetTotalDownloaded());
        cfg->Write(wxT("/Statistics/TotalDownloadedBytes"), buffer);

        buffer = CFormat(wxT("%llu")) % (theStats::GetSessionSentBytes() + thePrefs::GetTotalUploaded());
        cfg->Write(wxT("/Statistics/TotalUploadedBytes"), buffer);

        // Write changes to file
        cfg->Flush();

In fact, some stuff like stats should not be stored in preferences files !
(0002008)
Kry   
2006-05-27 10:35   
But it is! And can't be taken off there!
(0002012)
JusTiCe8   
2006-05-29 11:23   
too bad.
(0002014)
Kry   
2006-05-30 07:18   
I agree.