Permalink
Browse files

Merge branch 'master' of https://github.com/hep-gc/rpi-web

  • Loading branch information...
2 parents 770a5c8 + fdb0539 commit f5fcf2f6d4da3d23845edf520211967ae47d20e4 @AndreCharbonneau AndreCharbonneau committed May 28, 2013
@@ -1,5 +1,6 @@
#!/bin/bash
- current_utc_time=`date -u +'%a %b %d %Y %T'`
+# current_utc_time=`date -u +'%a %b %d %Y %T'`
+ current_utc_time=`date -u +'%Y-%m-%dT%TZ'`
redis-cli set nep52-cs-boot 0 > /dev/null
redis-cli set nep52-cs-clock 0 > /dev/null
redis-cli set nep52-cvmfs-boot 0 > /dev/null
@@ -1,15 +1,23 @@
#!/bin/bash
+ declare -i sum
x=`redis-cli get nep52-reset-date`
echo 'Last reset (UTC) : '$x
x=`redis-cli get nep52-cs-boot`
echo 'Number of Cloud Scheduler boots : '$x
+ sum=$x
x=`redis-cli get nep52-cs-clock`
echo 'Cloud Scheduler hours : '$x
+ sum=$sum+$x
x=`redis-cli get nep52-cvmfs-boot`
echo 'Number of CVMFS appliance boots : '$x
+ sum=$sum+$x
x=`redis-cli get nep52-cvmfs-clock`
echo 'CVMFS appliance hours : '$x
+ sum=$sum+$x
x=`redis-cli get nep52-client-boot`
echo 'Number of batch client boots : '$x
+ sum=$sum+$x
x=`redis-cli get nep52-client-clock`
echo 'Batch client hours : '$x
+ sum=$sum+$x
+ echo 'Invocations : '$sum

0 comments on commit f5fcf2f

Please sign in to comment.