Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 5658 to 5662

Definition

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

This article was last updated 25th November 2020 08:05 Europe/London time based on the source file dated 13th November 2020 16:50 Europe/London time.