Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_total_disk_usage()

Description

Returns the total disk space used by all resources on the system

Parameters

This function accepts no parameters.

Return

int

Location

include/resource_functions.php lines 6226 to 6230

Definition

 
function get_total_disk_usage()
    {
    global 
$fstemplate_alt_threshold;
    return 
ps_value("select ifnull(sum(disk_usage),0) value from resource where ref>?",array("i",$fstemplate_alt_threshold), 0,"stats");
    }

This article was last updated 7th May 2024 21:35 Europe/London time based on the source file dated 3rd May 2024 14:45 Europe/London time.