This commit is contained in:
spx 2011-05-27 18:39:57 +00:00
parent 68bc25ee82
commit 9a19d8808e
5 changed files with 11 additions and 11 deletions

View File

@ -76,12 +76,12 @@ bool CMeasureDiskSpace::Update()
if (sizeResult)
{
m_Value = (double)((m_Total) ? i64TotalBytes : i64FreeBytes).QuadPart;
m_Value = (double)(__int64)((m_Total) ? i64TotalBytes : i64FreeBytes).QuadPart;
if (i64TotalBytes.QuadPart != m_OldTotalBytes)
{
// Total size was changed, so set new max value.
m_MaxValue = (double)i64TotalBytes.QuadPart;
m_MaxValue = (double)(__int64)i64TotalBytes.QuadPart;
m_OldTotalBytes = i64TotalBytes.QuadPart;
}
}
@ -188,7 +188,7 @@ void CMeasureDiskSpace::ReadConfig(CConfigParser& parser, const WCHAR* section)
if (result)
{
m_MaxValue = (double)i64TotalBytes.QuadPart;
m_MaxValue = (double)(__int64)i64TotalBytes.QuadPart;
m_OldTotalBytes = i64TotalBytes.QuadPart;
}
else

View File

@ -55,7 +55,7 @@ bool CMeasureNetIn::Update()
if (m_Cumulative)
{
m_Value = (double)GetNetStatsValue(NET_IN);
m_Value = (double)(__int64)GetNetStatsValue(NET_IN);
}
else
{
@ -82,7 +82,7 @@ bool CMeasureNetIn::Update()
m_FirstTime = false;
}
m_Value = (double)value;
m_Value = (double)(__int64)value;
}
return PostUpdate();

View File

@ -55,7 +55,7 @@ bool CMeasureNetOut::Update()
if (m_Cumulative)
{
m_Value = (double)GetNetStatsValue(NET_OUT);
m_Value = (double)(__int64)GetNetStatsValue(NET_OUT);
}
else
{
@ -82,7 +82,7 @@ bool CMeasureNetOut::Update()
m_FirstTime = false;
}
m_Value = (double)value;
m_Value = (double)(__int64)value;
}
return PostUpdate();

View File

@ -55,7 +55,7 @@ bool CMeasureNetTotal::Update()
if (m_Cumulative)
{
m_Value = (double)GetNetStatsValue(NET_TOTAL);
m_Value = (double)(__int64)GetNetStatsValue(NET_TOTAL);
}
else
{
@ -82,7 +82,7 @@ bool CMeasureNetTotal::Update()
m_FirstTime = false;
}
m_Value = (double)value;
m_Value = (double)(__int64)value;
}
return PostUpdate();

View File

@ -93,14 +93,14 @@ void CMeterImage::LoadImage(const std::wstring& imageName, bool bLoadAlways)
{
if (!m_HeightDefined)
{
m_H = (imageW == 0) ? 0 : (m_Tile) ? imageH : (int)(m_W * imageH / (double)imageW);
m_H = (imageW == 0) ? 0 : (m_Tile) ? imageH : m_W * imageH / imageW;
}
}
else
{
if (m_HeightDefined)
{
m_W = (imageH == 0) ? 0 : (m_Tile) ? imageW : (int)(m_H * imageW / (double)imageH);
m_W = (imageH == 0) ? 0 : (m_Tile) ? imageW : m_H * imageW / imageH;
}
else
{