From 66154d9a09dda180d3de00640c900504e931507d Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 20 Jun 2017 11:05:03 +0200 Subject: sum number of objects not count --- cron.sh | 2 +- objects_over_time.plt | 6 +++--- 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; -- cgit v1.3.1