Jump to content
We've recently updated our Privacy Statement, available here ×

Variable subtraction, graphing


dtrobert

Recommended Posts

 Hi,

 I am plotting % Free Memory over time for servers and it works fine.  I would like to instead plot the inverse (% Used Memory) over time.  

I have a timeseries chart with value expression a variable $V{averageMem} defined as a java.lang.Integer.  

I figured I could just do this

new java.lang.Integer( 100 -($V{averageMem}.intValue()) )

to plot the inverse but no joy.  Instead, I get this error 

Cannot cast from int to Integer value = (java.lang.Integer)(100)

 

Any suggestions?

Thanks

Link to comment
Share on other sites

  • 10 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...