File: stripchart.cnf

package info (click to toggle)
boinc 7.14.2+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 111,132 kB
  • sloc: cpp: 163,589; php: 113,173; ansic: 49,284; pascal: 35,620; xml: 17,864; java: 13,521; python: 6,551; sh: 4,082; perl: 1,843; makefile: 1,796; objc: 1,543; sql: 959; csh: 126; lisp: 47
file content (66 lines) | stat: -rw-r--r-- 2,231 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
use Time::Local;

# What version is this?
$majorversion = 2; $minorversion = 1;

# Directory where gnuplot is
$gnuplot = "/usr/bin"
 
# Temporary files
$suffix = rand(10000);
$gnudata = "/tmp/XYZzyx..indata" . $suffix;       # contains input data
$ticdata = "/tmp/XYZzyx..ticdata" . $suffix;      # contains xtic information
$gnuscript = "/tmp/XYZzyx..gnuscript" .$suffix;   # contains script for gnuplot
$outfile = "/tmp/XYZzyx..outfile" . $suffix;      # contains output plot

# Default colors for plotting (in standard RRGGBB hex format)
# in order: 1. background color, 2. axis/font color, 3. grid color,
#           4. point color 1, 5. point color 2, 6. point color 3
$colorvals  = "xffffff x000000 xc0c0c0 x00a000 x0000a0 x2020c0";

# Default size of plot in pixels
$plotwidth = 600;
$plotheight = 180;

# Abbreviations for months
@monthabbs = ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");

# Where are these unix commands located?
$tailexe = "tail";
$catexe = "cat";
$grepexe = "grep";

# How many seconds in a day?
$daysecs = 86400;

# Local time difference? (Yes this is a wonky way to get current time zone difference)
($sec,$min,$hour,$mday,$mon,$year) = gmtime($rightnow);
$tzdiff = timegm($sec,$min,$hour,$mday,$mon,$year) - timelocal($sec,$min,$hour,$mday,$mon,$year);

# Where is the stripchart executable located?
$stripchartexe = "/usr/lib/cgi-bin/stripchart"
 
# What is the default number of stripcharts?
$defaultnumcharts = 1;
 
# Any default flags to send to stripchart?
$defaultflags = "-s";

# Where is the list of datafiles for stripchart.cgi?
# Note: there is a sample copy in the samples directory: 
$datafilelist = "/usr/share/stripchart/datafiles";
 
# Where is the list of user-defined cgi queries?
# Note: this file gets created by the cgi - must put it somewhere that the cgi user can write to 
$queryfilelist = "/tmp/querylist";

# What time is it right now?
$rightnow = time;
($sec,$min,$hour,$day,$month,$year) = localtime($rightnow);
$sec = "";
$month++;
$year += 1900;
 
# CGI plot width and plot height: set only if it will always be the same
# $cgiplotwidth = 0; $cgiplotheight = 0; # if you don't know
$cgiplotwidth = 600; $cgiplotheight = 192; # if you do know