This commit is contained in:
David Lyle
2019-08-07 09:53:36 +01:00
committed by Graham Whaley
parent d72621ae2e
commit c88d9a61c3
2 changed files with 2 additions and 3 deletions
@@ -151,7 +151,6 @@ for (currentdir in resultdirs) {
cdata=cbind(cdata, count=seq_len(length(cdata[, "boot_time"])))
cdata=cbind(cdata, testname=rep(testname, length(cdata[, "boot_time"]) ))
cdata=cbind(cdata, dataset=rep(datasetname, length(cdata[, "boot_time"]) ))
#cdata=cbind(cdata, pndata)
# Gather our statistics
# '-1' containers, as the first entry should be a data capture of before
+2 -2
View File
@@ -119,7 +119,7 @@ EOF
# for the first call to grab stats, there are no new pods
# so we need to fill in with NA (R specific value) in matching
# diminsion to the rest of the calls to grab_stats, so $STEP items
# dimension to the rest of the calls to grab_stats, so $STEP items
if [[ ${#new_pods[@]} == 0 ]]; then
for i in $STEP; do
local new_pod_json="$(cat << EOF
@@ -132,7 +132,7 @@ EOF
metrics_json_add_nested_array_element "$new_pod_json"
done
else
local maxelem=$(( ${#new_pods[@]} - 1 ))
local maxelem=$(( ${#new_pods[@]} - 1 ))
for index in $(seq 0 $maxelem); do
local node=$(kubectl get pod ${new_pods[$index]} -o json | jq -r '"\(.spec.nodeName)"')
local new_pod_json="$(cat << EOF