0
};
+const char *freqtext[] = {
+ "DEF:freq=" POWER_RRD_PATH ":taajuus:AVERAGE",
+ "COMMENT:\\n",
+ blank,
+ "COMMENT: "
+ "MIN MAX AVG Last\\n",
+ blank,
+ "LINE1:freq#0000ff:Taajuus ",
+ "GPRINT:freq:MIN:" numfmt,
+ "GPRINT:freq:MAX:" numfmt,
+ "GPRINT:freq:AVERAGE:" numfmt,
+ "GPRINT:freq:LAST:" numfmt "\\n",
+ "COMMENT: \\n",
+};
+
const char *cpuoptions[] = {
"--alt-autoscale-max",
"--lower-limit", "0",
0
};
+const char *freqoptions[] = {
+ "--alt-autoscale",
+ "--vertical-label", "Taajuus Hz",
+ "--units-exponent", "-2",
+ 0
+};
+
const char *poweroptions[] = {
"--alt-autoscale-max",
"--lower-limit", "0",
.text = (char **)&powertext
};
+static struct rrd_image freqdaily = {
+ .image_filename = POWER_IMAGES_PATH "freq_daily.png",
+ .width = 480,
+ .height = 480,
+ .timestart = "end-1d",
+ .timeend = "now",
+ .imageformat = "PNG",
+ .options = (char **)&freqoptions,
+ .text = (char **)&freqtext
+};
+
+static struct rrd_image freqweekly = {
+ .image_filename = POWER_IMAGES_PATH "freq_weekly.png",
+ .width = 480,
+ .height = 480,
+ .timestart = "end-1w",
+ .timeend = "now",
+ .imageformat = "PNG",
+ .options = (char **)&freqoptions,
+ .text = (char **)&freqtext
+};
+
+static struct rrd_image freqmonthly = {
+ .image_filename = POWER_IMAGES_PATH "freq_monthly.png",
+ .width = 480,
+ .height = 480,
+ .timestart = "end-1m",
+ .timeend = "now",
+ .imageformat = "PNG",
+ .options = (char **)&freqoptions,
+ .text = (char **)&freqtext
+};
+
+static struct rrd_image freqyearly = {
+ .image_filename = POWER_IMAGES_PATH "freq_yearly.png",
+ .width = 480,
+ .height = 480,
+ .timestart = "end-1y",
+ .timeend = "now",
+ .imageformat = "PNG",
+ .options = (char **)&freqoptions,
+ .text = (char **)&freqtext
+};
+
static struct rrd_image *cpu_mem_images[] = {
&cpudaily,
&cpuweekly,
&powerweekly,
&powermonthly,
&poweryearly,
+ &freqdaily,
+ &freqweekly,
+ &freqmonthly,
+ &freqyearly,
0
};