Merge branch 'cc-5709-airtime-analyzer' into cc-5709-airtime-analyzer-saas
Conflicts: airtime_mvc/public/index.php * Reverted some SaaS-only thing Martin did a year ago. Looks benign but only one way to find out...
This commit is contained in:
commit
1c5e2d6205
59 changed files with 1851 additions and 140 deletions
|
@ -1409,4 +1409,24 @@ class Application_Model_Preference
|
|||
public static function GetHistoryFileTemplate() {
|
||||
return self::getValue("history_file_template");
|
||||
}
|
||||
|
||||
public static function getDiskUsage()
|
||||
{
|
||||
return self::getValue("disk_usage");
|
||||
}
|
||||
|
||||
public static function setDiskUsage($value)
|
||||
{
|
||||
self::setValue("disk_usage", $value);
|
||||
}
|
||||
|
||||
public static function updateDiskUsage($filesize)
|
||||
{
|
||||
$currentDiskUsage = self::getDiskUsage();
|
||||
if (empty($currentDiskUsage)) {
|
||||
$currentDiskUsage = 0;
|
||||
}
|
||||
|
||||
self::setDiskUsage($currentDiskUsage + $filesize);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue