X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/blobdiff_plain/c8e671a81e15ec77a12c53fd432fa45c807ba59a..396061c063bb07ee4e0c0e85b9c158c881039288:/tpl/index.php diff --git a/tpl/index.php b/tpl/index.php index 56e4e82..26ce4e8 100644 --- a/tpl/index.php +++ b/tpl/index.php @@ -21,6 +21,35 @@ However, the SIPB MySQL service should not be used to host critical applications One nightly backup is available for your locker at /mit/sql/backup/LOCKER_NAME. You should perform additional backups of your data using the shortjobs service or phpMyAdmin.

+
+1) { + array_shift($qunits); + $v /= 1000; +} +printf('sql.mit.edu has served %.3f%s queries', $v, array_shift($qunits)); + +$qunits = array('minutes', 'hours', 'days'); +$qdiv = array(60, 60, 24); +while (count($qdiv) && $t/$qdiv[0]>0) { + $t /= array_shift($qdiv); + $tunits = array_shift($qunits); +} +printf(' in the last %.2f %s (%.2f qps)', $t, $tunits, $qavg); +?> +
+