* 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:
parent
2716cfd3d7
commit
230e325926
@ -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;
|
||||
|
@ -1066,6 +1066,13 @@ NetworkUsageDataSource::AdaptiveScale() const
|
||||
}
|
||||
|
||||
|
||||
scale_type
|
||||
NetworkUsageDataSource::ScaleType() const
|
||||
{
|
||||
return kBytePerSecondScale;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
NetworkUsageDataSource::Primary() const
|
||||
{
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user