Only show "real" DS
This commit is contained in:
parent
b969488ac6
commit
dc6ca9f073
5
add.html
5
add.html
@ -154,9 +154,10 @@ cat <<-EOHTML
|
||||
<ul>
|
||||
EOHTML
|
||||
|
||||
for indice in ${!uinames[@]}
|
||||
for indice in ${dsnames[@]}
|
||||
do
|
||||
echo "<li><input type=\"text\" name=\"${dsnames[indice]}\" value=\"${last["${dsnames[indice]}"]}\" /> ${uinames[indice]}</li>"
|
||||
[[ -z "${uinames[$indice]}" ]] && continue
|
||||
echo "<li><input type=\"text\" name=\"$indice\" value=\"${last["$indice"]}\" /> ${uinames[$indice]}</li>"
|
||||
done
|
||||
|
||||
cat <<-EOHTML
|
||||
|
||||
3
index
3
index
@ -415,6 +415,7 @@ then
|
||||
|
||||
for stat in "${stats[@]}"
|
||||
do
|
||||
[[ -z "${uinames[$stat]}" ]] && continue
|
||||
if [[ $stat == AP ]] || (( bronze["$stat"] ))
|
||||
then
|
||||
height=169
|
||||
@ -627,7 +628,7 @@ else
|
||||
rrdtool graph - \
|
||||
-a PNG \
|
||||
-w $graph_width \
|
||||
-v $graph \
|
||||
-v "${uinames[$graph]}" \
|
||||
-s $start -e $end \
|
||||
DEF:data=$rrdfile:$graph:AVERAGE:step=3600${datastart+:start=$datastart}${dataend+:end=$dataend} \
|
||||
DEF:fail=$rrdfile:$graph:FAILURES \
|
||||
|
||||
59
settings
59
settings
@ -39,36 +39,35 @@ start=$default_start
|
||||
end=$default_end
|
||||
prevperiod=$default_prevperiod
|
||||
|
||||
uinames=(
|
||||
AP
|
||||
"Unique Portals Visited"
|
||||
"Portals Discovered"
|
||||
"XM Collected"
|
||||
"Distance Walked"
|
||||
"Resonators Deployed"
|
||||
"Links Created"
|
||||
"Control Fields Created"
|
||||
"Mind Units Captured"
|
||||
"Longest Link Ever Created"
|
||||
"Largest Control Field"
|
||||
"XM Recharged"
|
||||
"Portals Captured"
|
||||
"Unique Portals Captured"
|
||||
"Mods Deployed"
|
||||
"Resonators Destroyed"
|
||||
"Portals Neutralized"
|
||||
"Enemy Links Destroyed"
|
||||
"Enemy Control Fields Destroyed"
|
||||
"Max Time Portal Held"
|
||||
"Max Time Link Maintained"
|
||||
"Max Link Length x Days"
|
||||
"Max Time Field Held"
|
||||
"Largest Field MUs x Days"
|
||||
"Unique missions completed"
|
||||
Hacks
|
||||
"Glyph Hack Points"
|
||||
"Agents Recruited"
|
||||
"Consecutive Days Hacking"
|
||||
declare -A uinames=(
|
||||
[AP]=AP
|
||||
[Explorer]="Unique Portals Visited"
|
||||
[Seer]="Portals Discovered"
|
||||
[XM]="XM Collected"
|
||||
[Walked]="Distance Walked"
|
||||
[Builder]="Resonators Deployed"
|
||||
[Connector]="Links Created"
|
||||
[Mind_Controller]="Control Fields Created"
|
||||
[MU]="Mind Units Captured"
|
||||
[Longest_Link]="Longest Link Ever Created"
|
||||
[Largest_Field]="Largest Control Field"
|
||||
[Recharger]="XM Recharged"
|
||||
[Liberator]="Portals Captured"
|
||||
[Pioneer]="Unique Portals Captured"
|
||||
[Engineer]="Mods Deployed"
|
||||
[Purifier]="Resonators Destroyed"
|
||||
[Neutralized]="Portals Neutralized"
|
||||
[Links_Destroyed]="Enemy Links Destroyed"
|
||||
[Fields_Destroyed]="Enemy Control Fields Destroyed"
|
||||
[Guardian]="Max Time Portal Held"
|
||||
[Link_Maintained]="Max Time Link Maintained"
|
||||
[Link_Length_x_Days]="Max Link Length x Days"
|
||||
[Field_Held]="Max Time Field Held"
|
||||
[Field_x_Days]="Largest Field MUs x Days"
|
||||
[Mercenary]="Unique missions completed"
|
||||
[Hacker]=Hacks
|
||||
[Translator]="Glyph Hack Points"
|
||||
[Recruiter]="Agents Recruited"
|
||||
)
|
||||
dsnames=(
|
||||
AP
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user