Skip to content

Commit

Permalink
Merge pull request #28 from zeroquinc:free-space
Browse files Browse the repository at this point in the history
chore: change channel name for disk space
  • Loading branch information
zeroquinc authored Jul 1, 2024
2 parents 08b6bcf + 3cd54db commit 51cb27a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/discord/cogs/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def update_disk_space_channel(self):
logger.debug(f"All channels: {[channel.name for channel in channels]}")

# Look for a channel that starts with "HDD:"
disk_space_channel = next((channel for channel in channels if channel.name.startswith("HDD:")), None)
disk_space_channel = next((channel for channel in channels if channel.name.startswith("Free:")), None)

if disk_space_channel is not None:
logger.info(f"Found existing channel: {disk_space_channel.name}")
Expand Down
2 changes: 1 addition & 1 deletion src/linux/disk_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ def get_disk_space() -> str:
available_space_gb = values[available_space_index].rstrip('G')
total_space_gb = values[total_space_index].rstrip('G')
logger.info(f"Available space: {available_space_gb} GB, Total space: {total_space_gb} GB")
return f"{available_space_gb}GB / {total_space_gb}GB"
return f"Free: {available_space_gb}GB"

return f"No data found for {target_partition}"

0 comments on commit 51cb27a

Please sign in to comment.