Skip to content

Commit 652c9a5

Browse files
committed
1.5.1: Fix warning
1 parent 862fd8f commit 652c9a5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ It is compatible with python 3+ and usable only on Linux.
2222
### Public and private discord channel commands
2323
Displayed infos are not the same if you do the command in private or public channel (all info are displayed in private channel, some are hidden from public channels)
2424

25-
- `/usage`: 📊 View disk space, CPU, RAM, ... 📊
25+
- `/usage`: 📊 View disk space, Load average, CPU, RAM, ... 📊
2626
<img src="https://raw.githubusercontent.com/QuentinCG/Discord-Bot-Linux-Monitor-Python-Library/master/example/usage.jpg" height="400">
2727

2828
- `/os_infos`: 🖥 View basic system information 🖥

discordbotlinuxmonitor/discordbotlinuxmonitor.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- Do all checks bellow in a scheduled tasks and display the results only if there is an issue (only in console if using only the library)
88
- Do all checks bellow in a scheduled tasks and display the results every time (only in console if using only the library)
99
10-
- Check CPU, RAM, SWAP, Temperature
10+
- Check Load Average, CPU, RAM, SWAP, Temperature
1111
- Check disk usage
1212
- Check folder usage
1313
- Check websites basic availability (ping)
@@ -33,7 +33,7 @@
3333
__license__ = "MIT License"
3434
__copyright__ = "Copyright Quentin Comte-Gaz (2024)"
3535
__python_version__ = "3.+"
36-
__version__ = "1.5.0 (2024/10/27)"
36+
__version__ = "1.5.1 (2024/11/03)"
3737
__status__ = "Usable for any Linux project"
3838

3939
# pyright: reportMissingTypeStubs=false
@@ -446,10 +446,10 @@ async def usage(self, interaction: discord.Interaction) -> None:
446446

447447
if is_private:
448448
out_msg += "\n"
449-
out_msg += self.monitoring.check_load_average(display_only_if_critical=False) + "\n"
450-
out_msg += self.monitoring.check_cpu_usage(display_only_if_critical=False) + "\n"
451-
out_msg += self.monitoring.check_ram_usage(display_only_if_critical=False) + "\n"
452-
out_msg += self.monitoring.check_swap_usage(display_only_if_critical=False) + "\n"
449+
out_msg += await self.monitoring.check_load_average(display_only_if_critical=False) + "\n"
450+
out_msg += await self.monitoring.check_cpu_usage(display_only_if_critical=False) + "\n"
451+
out_msg += await self.monitoring.check_ram_usage(display_only_if_critical=False) + "\n"
452+
out_msg += await self.monitoring.check_swap_usage(display_only_if_critical=False) + "\n"
453453
out_msg += self.monitoring.check_cpu_temperature(display_only_if_critical=False) + "\n"
454454
out_msg += self.monitoring.get_network_info()
455455

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="DiscordBotLinuxMonitor",
9-
version="1.5.0",
9+
version="1.5.1",
1010
description="From discord channels: Get information and warning status of Linux server like service, port, ping, ssl certificate, disk/folder/cpu/ram/swap usage, ip connection, ... (Python and shell library, Linux ONLY)",
1111
long_description=readme,
1212
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)