df.lua 650 B

12345678910111213141516171819202122232425262728293031323334
  1. -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
  2. -- Licensed to the public under the Apache License 2.0.
  3. module("luci.statistics.rrdtool.definitions.df", package.seeall)
  4. function rrdargs( graph, plugin, plugin_instance, dtype )
  5. return {
  6. title = "%H: Disk space usage on %di",
  7. vlabel = "Bytes",
  8. per_instance = true,
  9. number_format = "%5.1lf%sB",
  10. data = {
  11. sources = {
  12. df = { "free", "used" }
  13. },
  14. options = {
  15. df__free = {
  16. color = "00ff00",
  17. overlay = false,
  18. title = "free"
  19. },
  20. df__used = {
  21. color = "ff0000",
  22. overlay = false,
  23. title = "used"
  24. }
  25. }
  26. }
  27. }
  28. end