使用 RRDTool 获取一段时间内的平均值

发布于 2024-08-24 05:46:36 字数 111 浏览 2 评论 0原文

我正在使用 RRDTool 从 RRD DB 获取数据,但在获取一段时间(例如 12 小时)的平均/最大数量时遇到问题。我只需要一个数字来表示周期的平均值/最大值,就像 GPRINT 在图形函数中所做的那样。

I am using RRDTool to fetch data from RRD DB's, but have problem to get average/max number for a period (e.g. 12 hours). I want only one number representins the average/max of the period as GPRINT does in the graph function.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魂归处 2024-08-31 05:46:36

诀窍是使用图形函数,但使用 PRINT 而不是 GPRINT ...您甚至可以省略任何实际绘制到图形的函数并使用图形函数仅计算数字...

hth
托比

the trick is to use the graph function but use PRINT instead of GPRINT ... you can even leave out any functions that actually draw to the graph and use the graph function to calculate just the numbers ...

hth
tobi

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文