Re: negative value for a db
John Hutchinson <[email protected]> Fri, 15 May 2009 12:32:00 -0400
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <[email protected]> |
i put this in my default and now i am getting .74 for a -74 John Chris Adams wrote: > Once upon a time, John Hutchinson <[email protected]> said: > >> I am trying to monitor a radio that returns a db reading in a negative >> number can someone help me in how to tell cricket collector to multiply >> the number by -1 before passing it to rrd so that it can be shown on >> the graph? >> > > You can't really modify the number before it is stored, but you can > modify it before graphing. For the datasource, you should have an entry > in the graph dictionary, and you can specify operations there like: > > graph RSSIfrAP > scale = -1,* > > The "scale" entry is an RPN operation to apply to the data before > graphing. > > If you really want to have a modified value stored, I think the only way > currently to do that is to store the unmodified value and then make a > COMPUTE datasource that does the modification (but that's overly > complicated for what you are doing). > > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects