From 634b429391a94015c2ddf93a66c34b6994dea5d5 Mon Sep 17 00:00:00 2001 From: drigato Date: Wed, 16 Apr 2014 15:56:45 -0400 Subject: [PATCH] Logging statment for testing upgrades - will be removed --- airtime_mvc/application/models/Systemstatus.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/airtime_mvc/application/models/Systemstatus.php b/airtime_mvc/application/models/Systemstatus.php index 7d51eaf54..21f24800b 100644 --- a/airtime_mvc/application/models/Systemstatus.php +++ b/airtime_mvc/application/models/Systemstatus.php @@ -213,6 +213,20 @@ class Application_Model_Systemstatus public static function GetDiskInfo() { + //testing purposes only + $musicDir = CcMusicDirsQuery::create() + ->filterByType('stor') + ->filterByExists(true) + ->findOne(); + $storPath = $musicDir->getDirectory(); + + $freeSpace = disk_free_space($storPath); + $totalSpace = disk_total_space($storPath); + Logging::info($totalSpace = $freeSpace); + + + + $partitions = array(); //connect to DB and find how much total space user has allocated.