- Uptime now shows over 49.7 days correctly in Vista or later.

- Some related tweaks.
This commit is contained in:
spx
2011-06-05 12:32:18 +00:00
parent 62c0268fef
commit 3a7d937021
10 changed files with 53 additions and 25 deletions

View File

@ -19,6 +19,7 @@
#include "StdAfx.h"
#include "MeasureUptime.h"
#include "Rainmeter.h"
#include "System.h"
/*
** CMeasureUptime
@ -73,8 +74,8 @@ bool CMeasureUptime::Update()
{
if (!CMeasure::PreUpdate()) return false;
DWORD ticks = GetTickCount();
m_Value = ticks / 1000;
ULONGLONG ticks = CSystem::GetTickCount64();
m_Value = (double)(__int64)(ticks / 1000);
return PostUpdate();
}