aboutsummaryrefslogtreecommitdiff
path: root/utils/packet_processing.sh
diff options
context:
space:
mode:
authorJames Carter <james.carter@bytemark.co.uk>2017-08-01 15:56:35 +0100
committerJames Carter <james.carter@bytemark.co.uk>2017-08-01 15:56:35 +0100
commit4eff930c3f01414bb454d7bcb5501827cb60289b (patch)
treea398edd68c7fd30cf3987538e41e9b4df9f561b8 /utils/packet_processing.sh
parent0be1fa0ebadf9435a760582d17f47ff96dc0851c (diff)
parent814ed65fd415cc62b2f6f661a7f6d1629562544b (diff)
Merge branch '27-package-and-publish-in-gitlab-ci-retire-maker2-job' into 'develop'
Added CI Closes #27 See merge request !2
Diffstat (limited to 'utils/packet_processing.sh')
-rwxr-xr-xutils/packet_processing.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/utils/packet_processing.sh b/utils/packet_processing.sh
deleted file mode 100755
index d78a916..0000000
--- a/utils/packet_processing.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-NO_ARGS=0
-OPTERROR=65
-if [ $# -eq "$NO_ARGS" ] # Script invoked with no command-line args?
-then
- echo "Usage: `basename $0` File.log"
- exit $OPTERROR # Exit and explain usage, if no argument(s) given.
-fi
-logFile=$1
-
-egrep 'Packet processed in [\.0-9]* seconds' $logFile |\
- awk 'BEGIN {print " date sz"} {print s++ " " $1 "::" $2 " " $11}' > data
-
-R --vanilla --no-save --slave <<RSCRIPT
-lst <- read.table("data")
-attach(lst)
-summary(sz)
-png(filename="packets.png", width=1024)
-dates <- strptime(as.character(date), "%Y-%m-%d::%H:%M:%S")
-plot(dates, sz, type='l',
- main="Mauve server: maximum processing time of a packet per second.",
- xlab="Time",
- ylab="Maximum processing time of one packet")
-abline(h=1.05, col="red")
-abline(h=mean(sz), col="blue")
-RSCRIPT
-img=`which qiv`
-if [ $? != 0 ]
-then echo "Cannot display image here"
-else $img packets.png
-fi