From 20705a550df5b13a544dc0865c6aef16e64c99d9 Mon Sep 17 00:00:00 2001 From: ShevAbam Date: Wed, 18 Jun 2014 10:11:11 +0200 Subject: + First commit (version 2.0) --- libs/swap.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 libs/swap.php (limited to 'libs/swap.php') diff --git a/libs/swap.php b/libs/swap.php new file mode 100644 index 0000000..93bd323 --- /dev/null +++ b/libs/swap.php @@ -0,0 +1,31 @@ + Misc::getSize($used * 1024), + 'free' => Misc::getSize($free * 1024), + 'total' => Misc::getSize($total * 1024), + 'percent_used' => $percent_used, +); + +echo json_encode($datas); \ No newline at end of file -- cgit v1.3