Device Appearnance, performace , too many digits!

I hope some one can help me customise the Appearance of Devices (If it is applicable, or I will make it as a feature request from the Dude team).

If in device Appearance properties, the variable [device_performance()] is there , the device would look like this
Device performance.JPG
I would like to be able to do the following regarding the performance counters display:

1- Display only integer values, or max of 2 digits after the decimal point.
2- Choose which performance counters to display (e.g. only the CPU and Mem)


This is how my device’s appearance property look like:
Device Appearance.JPG

To add more,
Where can one fine the list of variables that can be added to the device’s appearance;
in the screen shot, notice that [device_peroformance()] is not available in the drop-down list.
So if removed , one has to add it manually.
Device appearance-vriables list.JPG

Look at the functions. You can do things in functions like string_substring…
You might just create a new function and copy the text from device_performance.
Then use string_substring to limit the returned digits.

I would suggest not using the copy and paste feature but create the new function from scratch.
I have had mixed results with copy and paste (Built into the dude) but a new function from scratch is easy enough.
You can use copy and paste for text just don’t copy and paste objects within the dude… YMMV.

Look at each function to learn the language.
funct.JPG

SweetDude, Thanks, you are really what you are.

Your help explained where & how to alter these functions.

I manged to change the functions to display only integer values by using the round() function.

Enclosing the cpu_usage() function in a round() function solved the problem. Also did the same for the other function components of the device_performance() function.

Oh that is cool. I have not done enough messing with functions.

When you have time you might want to read the “Probe thread”
http://forum.mikrotik.com/t/probe-thread/10321/1

There is some good information in there for when you want to create other probes.

I picked sweetdude because The Dude is so awesome… and it reminds me of the movie dude where is my car.
I know but what does mine say, Sweet. I know but what does mine say, Dude. HAHAHA