mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Uptime now shows over 49.7 days correctly in Vista or later.
- Some related tweaks.
This commit is contained in:
@ -3728,11 +3728,13 @@ void CRainmeter::ReadStats()
|
||||
*/
|
||||
void CRainmeter::WriteStats(bool bForce)
|
||||
{
|
||||
static DWORD lastWrite = 0;
|
||||
static ULONGLONG lastWrite = 0;
|
||||
|
||||
if (bForce || (lastWrite + 1000 * 60 < GetTickCount()))
|
||||
ULONGLONG ticks = CSystem::GetTickCount64();
|
||||
|
||||
if (bForce || (lastWrite + 1000 * 60 < ticks))
|
||||
{
|
||||
lastWrite = GetTickCount();
|
||||
lastWrite = ticks;
|
||||
|
||||
// Write the date for statistics
|
||||
WritePrivateProfileString(L"Statistics", L"Since", m_StatsDate.c_str(), m_StatsFile.c_str());
|
||||
|
Reference in New Issue
Block a user