fix miss type in add_disco_summary_value, added comments
This commit is contained in:
parent
9c97fc2aa6
commit
7cf65b0059
|
@ -19,7 +19,11 @@ def _print_debug(
|
|||
print_errors: bool = False
|
||||
):
|
||||
"""
|
||||
Prints any list, dict, string, float or integer as a json
|
||||
Print the variable as a JSON-like representation for debugging purposes.
|
||||
|
||||
Args:
|
||||
var (any): The variable to be printed.
|
||||
print_errors (bool): A flag indicating whether to print errors during debugging.
|
||||
"""
|
||||
from .output import print_debug
|
||||
print_debug(var, print_errors)
|
||||
|
@ -79,7 +83,7 @@ def add_disco_summary_value(
|
|||
if key in SUMMARY:
|
||||
SUMMARY[key] += value
|
||||
else:
|
||||
set_summary_value(key, value)
|
||||
set_disco_summary_value(key, value)
|
||||
|
||||
####
|
||||
# Set fixed value to info
|
||||
|
@ -120,7 +124,10 @@ def set_disco_monitoring_data(
|
|||
data: list = []
|
||||
):
|
||||
"""
|
||||
TODO: Add comments
|
||||
Set the monitoring data for disk usage.
|
||||
|
||||
Args:
|
||||
data (list): A list containing disk monitoring data.
|
||||
"""
|
||||
global MONITORING_DATA
|
||||
|
||||
|
@ -133,7 +140,10 @@ def add_disco_monitoring_data(
|
|||
data: dict = {}
|
||||
):
|
||||
"""
|
||||
TODO: Add comments
|
||||
Add disk monitoring data to the global monitoring dataset.
|
||||
|
||||
Args:
|
||||
data (dict): A dictionary containing disk monitoring data.
|
||||
"""
|
||||
global MONITORING_DATA
|
||||
|
||||
|
|
Loading…
Reference in New Issue