Skip to content

Commit

Permalink
streamstats (ds12, pentaradio-20121127)
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Nov 28, 2012
1 parent f695ab5 commit 4b3bfe1
Show file tree
Hide file tree
Showing 9 changed files with 31,977 additions and 0 deletions.
14 changes: 14 additions & 0 deletions streamstats/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pentaradio-20121127.png: pentaradio-20121127.gnuplot pentaradio-20121127-audio.data pentaradio-20121127-video.data
gnuplot $<

ds12.png: ds12.gnuplot ds12.data
gnuplot $<

%.data: %.stats stats2data
time ./stats2data < $< > $@

stats2data: stats2data.hs
ghc --make -O2 $@

clean:
rm -f stats2data{,.hi,.o} *.data *.png
15 changes: 15 additions & 0 deletions streamstats/ds12.gnuplot
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
set terminal png size 600,400 font "Helvetica, 10"
set xdata time
set timefmt "%s"
set output "ds12.png"
#set xrange ["1354050342":"1354057331"]
set xtics 4*3600 format "%a %H:%M"
set yrange [0:35]
set grid
set xlabel "Time"
set ylabel "Connections"
set title "Stream listeners"
set key left box
plot \
"ds12.data" using ($1+7200):2 title "Großer Saal" with lines smooth csplines, \
"ds12.data" using ($1+7200):3 title "Kleiner Saal" with lines smooth csplines
Loading

0 comments on commit 4b3bfe1

Please sign in to comment.