* The network usage data sources are now actually using a single scale as

intended before.
* Also found a bug in the scales that prevented them from working.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27962 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2008-10-10 23:20:59 +00:00
parent 2716cfd3d7
commit 230e325926
3 changed files with 9 additions and 1 deletions

View File

@ -115,7 +115,7 @@ Scale::Update(int64 value)
{
if (!fInitialized || fMinimumValue > value)
fMinimumValue = value;
if (!fInitialized || fMaximumValue > value)
if (!fInitialized || fMaximumValue < value)
fMaximumValue = value;
fInitialized = true;

View File

@ -1066,6 +1066,13 @@ NetworkUsageDataSource::AdaptiveScale() const
}
scale_type
NetworkUsageDataSource::ScaleType() const
{
return kBytePerSecondScale;
}
bool
NetworkUsageDataSource::Primary() const
{

View File

@ -267,6 +267,7 @@ public:
virtual const char* Name() const;
virtual const char* Label() const;
virtual bool AdaptiveScale() const;
virtual scale_type ScaleType() const;
virtual bool Primary() const;
private: