#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1068
Task: Write a Python function that checks disk usage of /Eden and /Eden_Archive using os.statvfs
Generated: 2026-02-12T18:57:43.458159
"""

import os

def check_disk_usage(path):
    stats = os.statvfs(path)
    block_size = stats.f_bsize
    total_blocks = stats.f_blocks
    free_blocks = stats.f_bfree
    total_space = total_blocks * block_size
    free_space = free_blocks * block_size
    used_space = total_space - free_space
    percent_used = (used_space / total_space) * 100 if total_space != 0 else 0
    return {
        'total': total_space,
        'free': free_space,
        'used': used_space,
        'percent_used': percent_used
    }

if __name__ == '__main__':
    eden_usage = check_disk_usage('/Eden')
    eden_archive_usage = check_disk_usage('/Eden_Archive')
    print(f"/Eden: Total space: {eden_usage['total']} bytes, Free: {eden_usage['free']} bytes, Used: {eden_usage['used']} bytes, Percent used: {eden_usage['percent_used']:.2f}%")
    print(f"/Eden_Archive: Total space: {eden_archive_usage['total']} bytes, Free: {eden_archive_usage['free']} bytes, Used: {eden_archive_usage['used']} bytes, Percent used: {eden_archive_usage['percent_used']:.2f}%")