C# - Getting a RawFraction Performance Counter to show a persistant value

Posted by jacko on Stack Overflow See other posts from Stack Overflow or by jacko
Published on 2010-03-11T17:04:13Z Indexed on 2010/03/17 15:51 UTC
Read the original article Hit count: 426

Filed under:
|
|

I've created a performance counter that shows a fraction of an incremeted value (RawFraction type) over a base value (RawBase). Unfortunately, when monitoring this value, it only shows the percentage when one of the counters is incremented. At all other times it it is sampled, it shows 0. Is there some way to tell the counter to hold onto the last value until the next time it needs to recalculate the fraction?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#