-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:robinbaxon/kittens-minecraft-web
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* * * * * cd /www/default && git pull | ||
* * * * * wget http://api.fhrnet.eu/mc/minecraft.baxon.org/25565/newinfo?method=json -O /www/default/static-test-api/minecraft.baxon.org/25565/newinfo | ||
* * * * * /usr/bin/gnuplot /www/default/scripts/creategraph.gp > /www/default/images/memoryusage.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# gnuplot script file for plotting memory usage over time | ||
#!/usr/bin/gnuplot | ||
reset | ||
|
||
set terminal unknown | ||
|
||
|
||
set xdata time | ||
set timefmt "%s" | ||
set format x "%H:%M:%S" | ||
|
||
plot "/home/minecraft/memorylogs/memorylog.dat" using 1:2 title "Minnebruk" | ||
set xlabel "Tid/dato" | ||
set ylabel "Minnebruk" | ||
|
||
set ytics 200 | ||
#set xtics 1000 | ||
|
||
xspan = GPVAL_DATA_X_MAX - GPVAL_DATA_X_MIN | ||
yspan = GPVAL_DATA_Y_MAX - GPVAL_DATA_Y_MIN | ||
|
||
xequiv = 60 | ||
yequiv = 100 | ||
ar = yspan/xspan * xequiv/yequiv | ||
|
||
ydim = 1080 | ||
xdim = 200/ar | ||
|
||
set xrange [GPVAL_DATA_X_MIN:GPVAL_DATA_X_MAX+200] | ||
set yrange [GPVAL_DATA_Y_MIN:GPVAL_DATA_Y_MAX] | ||
|
||
set terminal png size xdim,ydim | ||
set size ratio ar | ||
set style data linespoints | ||
|
||
set title "Minnebruk over tid" | ||
set key below | ||
set grid | ||
|
||
plot "/home/minecraft/memorylogs/memorylog.dat" using 1:2 title "Minnebruk" |