From 40964f4747fadb7741113afb7551d584ea390052 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 19 Aug 2010 22:51:19 +0300 Subject: added pingraph --- pingraph.php | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100755 pingraph.php diff --git a/pingraph.php b/pingraph.php new file mode 100755 index 0000000..62b2187 --- /dev/null +++ b/pingraph.php @@ -0,0 +1,60 @@ + $max_ping) { + $max_ping = $time; + } + $data[] = sprintf('{%s}', $time); + $date = @date('U', $ts); + $columns[] = sprintf('"%s"', $date); + fwrite($ofh, "$date, $time\n"); + } + $i++; +} + +fclose($ifh); +fclose($ofh); + +// Keynote can't really handle more +if ($i > 100) { + exit(); +} + +$data = implode(',', $data); +$columns = implode(',', $columns); + +$as =<< -- cgit v1.2.3