diff options
Diffstat (limited to 'src/tagr.h')
-rw-r--r-- | src/tagr.h | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -40,20 +40,22 @@ | |||
40 | #define N_(s) s | 40 | #define N_(s) s |
41 | #define gettext(s) s | 41 | #define gettext(s) s |
42 | #define ngettext(s,p,c) ((c) == 1 ? (s) : (p)) | 42 | #define ngettext(s,p,c) ((c) == 1 ? (s) : (p)) |
43 | 43 | ||
44 | struct monitor | 44 | struct monitor |
45 | { | 45 | { |
46 | char *id; | 46 | char *id; /* Monitor ID */ |
47 | char *name; | 47 | char *name; /* Full name */ |
48 | char *dir; | 48 | char *dir; /* Output directory */ |
49 | char *rate_unit; | 49 | char *rate_unit; /* Rate units */ |
50 | unsigned long max_rate; | 50 | unsigned long max_rate; /* Max. rate value */ |
51 | double scale; | 51 | unsigned long max_adjust; /* Adjustment for max. rate */ |
52 | double ystep; | 52 | double scale; /* Y (rate) scale */ |
53 | int swap; | 53 | double ystep; /* Step of Y grid, in fractions of max_rate */ |
54 | int ystep_absolute; /* When true, ystep is an absolute value */ | ||
55 | int swap; /* Swap input and output rates */ | ||
54 | }; | 56 | }; |
55 | 57 | ||
56 | extern int preprocess_only; | 58 | extern int preprocess_only; |
57 | extern int log_to_stderr; | 59 | extern int log_to_stderr; |
58 | extern char *pidfile; | 60 | extern char *pidfile; |
59 | extern unsigned update_interval; | 61 | extern unsigned update_interval; |
@@ -72,14 +74,14 @@ extern char *basedir; | |||
72 | extern char *configfile; | 74 | extern char *configfile; |
73 | extern int foreground; | 75 | extern int foreground; |
74 | extern char *html_template; | 76 | extern char *html_template; |
75 | extern char *html_input_file; | 77 | extern char *html_input_file; |
76 | extern int html_input_line; | 78 | extern int html_input_line; |
77 | extern int verbose_level; | 79 | extern int verbose_level; |
78 | extern char *rate_unit; | ||
79 | 80 | ||
81 | extern struct monitor default_monitor; | ||
80 | extern int percent_option; | 82 | extern int percent_option; |
81 | extern int transparent_option; | 83 | extern int transparent_option; |
82 | extern int zero_unknown_option; | 84 | extern int zero_unknown_option; |
83 | extern int fill_incoming_option; | 85 | extern int fill_incoming_option; |
84 | extern int color_background[3]; | 86 | extern int color_background[3]; |
85 | extern int color_light[3]; | 87 | extern int color_light[3]; |