Profile::ClearStats

This commit is contained in:
Glenn Maynard
2007-05-06 05:13:58 +00:00
parent 837f29e0f9
commit 6b60a97092
5 changed files with 12 additions and 9 deletions
+1 -4
View File
@@ -29,10 +29,7 @@ static LocalizedString MACHINE_STATS_CLEARED( "ScreenServiceAction", "Machine st
RString ClearMachineStats()
{
Profile* pProfile = PROFILEMAN->GetMachineProfile();
// don't reset the Guid
RString sGuid = pProfile->m_sGuid;
pProfile->InitAll();
pProfile->m_sGuid = sGuid;
pProfile->ClearStats();
PROFILEMAN->SaveMachineProfile();
return MACHINE_STATS_CLEARED.GetValue();
}