Collections functions
Encryption functions
General functions
Theme permission 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 5295 to 5300

Definition

 
function get_total_disk_usage()
    {
    global 
$fstemplate_alt_threshold;
    
$used sql_value("select sum(disk_usage) value from resource where ref>'$fstemplate_alt_threshold'",0);
    return (int)
$used;
    }

This article was last updated 15th July 2020 06:35 Europe/London time based on the source file dated 13th July 2020 14:40 Europe/London time.