Skip to content

Commit

Permalink
Merge pull request #64 from sixtadm/master
Browse files Browse the repository at this point in the history
New year's changes
  • Loading branch information
sixtadm authored Jan 6, 2020
2 parents 9c3b83a + 7fd3226 commit 7168f03
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
period='2019-12'
period='2020-01'
iFileName='server_status_'.period

# changes in status page:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ set y2tics tc rgb 'blue'
# set y2range [0:*]
nLines=system("wc -l ".restaFile." | awk '{print ($1)}'")
plot \
'< cat ????-??/server_status_????-??.dat' index 0 using 1:($4/1000) with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' title 'in progress',\
'< cat 20{19,20}-??/server_status_????-??.dat' index 0 using 1:($4/1000) with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' title 'in progress',\
'' index 0 using 1:($3/1000*M) with linespoints pt 7 ps 1 lt 2 lw 1 lc rgb 'green' title 'ready to send '.gprintf('(x%.1f)',1.0/M),\
'' index 0 using 1:6 with linespoints axis x1y2 pt 7 ps 1 lt 2 lw 1 lc rgb 'blue' notitle,\
restartFile index 0 using 1:(ybar) with impulses lt -1 lw 2 notitle,\
Expand Down Expand Up @@ -96,13 +96,13 @@ set title 'users'
# set yrange [7.5E3/fact:10E3/fact]
# set y2range [158E3/fact:165E3/fact]
plot \
'< cat ????-??/server_status_????-??.dat' index 0 using 1:($11/fact) with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' title 'users with recent credit',\
'< cat 20{19,20}-??/server_status_????-??.dat' index 0 using 1:($11/fact) with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' title 'users with recent credit',\
'' index 0 using 1:($10/fact) with linespoints axis x1y2 pt 7 ps 1 lt 1 lw 1 lc rgb 'blue' title 'users with credit'
set title 'computers'
# set yrange [21E3/fact:25E3/fact]
# set y2range [450E3/fact:470E3/fact]
plot \
'< cat ????-??/server_status_????-??.dat' index 0 using 1:($14/fact) with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' title 'hosts with recent credit',\
'< cat 20{19,20}-??/server_status_????-??.dat' index 0 using 1:($14/fact) with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' title 'hosts with recent credit',\
'' index 0 using 1:($13/fact) with linespoints axis x1y2 pt 7 ps 1 lt 1 lw 1 lc rgb 'blue' title 'hosts with credit'
# set yrange [*:*]
# set y2range [*:*]
Expand All @@ -126,7 +126,7 @@ unset y2tics
set grid xtics ytics lt 0 lw 1 lc rgb 'black'
# set yrange [70:155]
plot \
'< cat ????-??/server_status_????-??.dat' index 0 using 1:($16/1000) with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' notitle
'< cat 20{19,20}-??/server_status_????-??.dat' index 0 using 1:($16/1000) with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' notitle
# set yrange [*:*]
unset title

Expand All @@ -146,7 +146,7 @@ unset y2label
unset y2tics
set grid xtics ytics lt 0 lw 1 lc rgb 'black'
plot \
'< cat ????-??/server_status_????-??.dat' index 0 using 1:5 with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' notitle
'< cat 20{19,20}-??/server_status_????-??.dat' index 0 using 1:5 with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' notitle
unset title

# ------------------------------------------------------------------------------
Expand All @@ -168,7 +168,7 @@ set y2tics tc rgb 'blue'
set xtics rotate by 90 right
set grid xtics lt 0 lw 1
plot \
'< cat ????-??/SixTrack_status_????-??.dat' index 0 using 1:($4/1000) with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' title 'in progress',\
'< cat 20{19,20}-??/SixTrack_status_????-??.dat' index 0 using 1:($4/1000) with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' title 'in progress',\
'' index 0 using 1:($3/1000*M) with linespoints pt 7 ps 1 lt 2 lw 1 lc rgb 'green' title 'ready to send '.gprintf('(x%.1f)',1.0/M),\
'' index 0 using 1:5 with linespoints axis x1y2 pt 7 ps 1 lt 2 lw 1 lc rgb 'blue' notitle
unset grid
Expand Down Expand Up @@ -198,7 +198,7 @@ set y2tics tc rgb 'blue'
set xtics rotate by 90 right
set grid xtics lt 0 lw 1
plot \
'< cat ????-??/sixtracktest_status_????-??.dat' index 0 using 1:($4/1000) with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' title 'in progress',\
'< cat 20{19,20}-??/sixtracktest_status_????-??.dat' index 0 using 1:($4/1000) with linespoints pt 7 ps 1 lt 1 lw 1 lc rgb 'red' title 'in progress',\
'' index 0 using 1:($3/1000*M) with linespoints pt 7 ps 1 lt 2 lw 1 lc rgb 'green' title 'ready to send '.gprintf('(x%.1f)',1.0/M),\
'' index 0 using 1:5 with linespoints axis x1y2 pt 7 ps 1 lt 2 lw 1 lc rgb 'blue' notitle
unset grid
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

period='2019-12'
period='2020-01'
toolsdir=`dirname $0`

# create temporary period files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ reset
# ------------------------------------------------------------------------------

# files
grepFiles='2019-??/submit*.dat'
grepFiles='20{19,20}-??/submit*.dat'
iFileName='submitAll.dat'
grepFilesAssimilated='2019-??/assimilate*.dat'
grepFilesAssimilated='20{19,20}-??/assimilate*.dat'
iFileNameAssimilated='assimilateAll.dat'

# last 24h
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# today=system("date +%F")
today='2019-12-10'
today='2020-01-06'
iFileName='submitAll_'.today.'.dat'
iFileNameAssimilated='assimilateAll_'.today.'.dat'
oFileName='submitAll_'.today.'.ps'
Expand Down

0 comments on commit 7168f03

Please sign in to comment.