summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-06-20 11:05:03 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-06-20 11:05:03 +0200
commit66154d9a09dda180d3de00640c900504e931507d (patch)
tree6ac9352108b105bc11001d307486f50814b2874c
parent37ee795f8279cb933c8b325019f88e23b0ba3492 (diff)
downloadstatus-66154d9a09dda180d3de00640c900504e931507d.tar.gz
status-66154d9a09dda180d3de00640c900504e931507d.zip
sum number of objects not count
-rw-r--r--cron.sh2
-rw-r--r--objects_over_time.plt6
2 files changed, 4 insertions, 4 deletions
diff --git a/cron.sh b/cron.sh
index 9e44c04..d5d7066 100644
--- a/cron.sh
+++ b/cron.sh
@@ -74,7 +74,7 @@ find $LOGS -name "processor-out*__????-??-??_??-??-??.log"\
| mlr --fs ", " \
--ocsv \
put '$date = sec2gmt(gmt2sec($date) // (60*60*3) * (60*60*3));' \
- then stats1 -a count -f players,matches,telemetries -g date \
+ then stats1 -a sum -f players,matches,telemetries -g date \
then sort -f date \
| grep -v "1970" \
>> $PF.csv
diff --git a/objects_over_time.plt b/objects_over_time.plt
index ad7585c..e3655b9 100644
--- a/objects_over_time.plt
+++ b/objects_over_time.plt
@@ -13,6 +13,6 @@ set datafile separator ", ";
set terminal png noenhanced;
set key autotitle columnhead;
set output outputfile;
-plot inputfile using "date":"players_count" with lines axes x1y2, \
- inputfile using "date":"matches_count" with lines axes x1y2, \
- inputfile using "date":"telemetries_count" with lines axes x1y1;
+plot inputfile using "date":"players_sum" with lines axes x1y2, \
+ inputfile using "date":"matches_sum" with lines axes x1y2, \
+ inputfile using "date":"telemetries_sum" with lines axes x1y1;