in reply to How to calculate values based on date / time stamp?

If you want to graph the results, and/or store them, you can avoid some wheel re-invention, and use tools specifically designed to gather periodic, increasing data, and graphing it. The basic tool is rrdtool.

Once you understand how that works, you may want to implement the a package that makes it easy to configure and display the info via http. Take a look at cacti for this purpose. It may appear a little intimidating at first look, but once implemented, it is beautiful (unfortunately, it is done in PHP, not perl, but it is still very good).

            "Battle not with trolls, lest ye become a troll; and if you gaze into the Internet, the Internet gazes also into you."
        -Friedrich Nietzsche: A Dynamic Translation

  • Comment on Re: How to calculate values based on date / time stamp?