[Swift-commit] r7801 - demo/xsede.2014.0425/app
wilde at ci.uchicago.edu
wilde at ci.uchicago.edu
Thu Apr 24 16:14:57 CDT 2014
Author: wilde
Date: 2014-04-24 16:14:57 -0500 (Thu, 24 Apr 2014)
New Revision: 7801
Added:
demo/xsede.2014.0425/app/mdstats
Modified:
demo/xsede.2014.0425/app/stats
Log:
Revert stats back to original. Add mdstats.
Added: demo/xsede.2014.0425/app/mdstats
===================================================================
--- demo/xsede.2014.0425/app/mdstats (rev 0)
+++ demo/xsede.2014.0425/app/mdstats 2014-04-24 21:14:57 UTC (rev 7801)
@@ -0,0 +1,23 @@
+#! /bin/sh
+
+log() {
+ printf "\nCalled as: $0: $cmdargs\n\n"
+ printf "Start time: "; /bin/date
+ printf "Running as user: "; /usr/bin/id
+ printf "Running on node: "; /bin/hostname
+ printf "Node IP address: "; /bin/hostname -I
+ printf "\nEnvironment:\n\n"
+ printenv | sort
+}
+
+awk '
+
+{
+ sum2 += $2
+ sum3 += $3
+ sum4 += $4
+}
+
+END { printf("%f %f %f\n", sum2/NR, sum3/NR, sum4/NR) }
+' $*
+log 1>&2
Property changes on: demo/xsede.2014.0425/app/mdstats
___________________________________________________________________
Added: svn:executable
+ *
Modified: demo/xsede.2014.0425/app/stats
===================================================================
--- demo/xsede.2014.0425/app/stats 2014-04-24 21:13:50 UTC (rev 7800)
+++ demo/xsede.2014.0425/app/stats 2014-04-24 21:14:57 UTC (rev 7801)
@@ -12,7 +12,7 @@
awk '
-{ sum += $4}
+{ sum += $1}
END { printf("%f\n",sum/NR) }
' $*
More information about the Swift-commit
mailing list