RustImplementation #23

Merged
mysticmomba merged 118 commits from RustImplementation into master 2025-11-04 18:13:24 -05:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit b5a1ee188f - Show all commits
+1
View File
@@ -392,6 +392,7 @@ def findQuietAgents(url):
zero_percentage = (zero_count / total_hosts) * 100 zero_percentage = (zero_count / total_hosts) * 100
# Print results # Print results
print(f"Number of hosts in policy : {total_hosts} ")
print(f"Number of hosts with execution_count = 0: {zero_count}") print(f"Number of hosts with execution_count = 0: {zero_count}")
print(f"Percentage of hosts with execution_count = 0: {zero_percentage:.2f}%") print(f"Percentage of hosts with execution_count = 0: {zero_percentage:.2f}%")
+1 -1
View File
@@ -318,7 +318,7 @@ def skipback(days):
Generate a MongoDB ObjectId for a given number of days ago from today. Generate a MongoDB ObjectId for a given number of days ago from today.
Adds 1 extra day to the input to look further back. Adds 1 extra day to the input to look further back.
""" """
adjusted_days = days + 10 adjusted_days = days
date_days_ago = datetime.datetime.now(datetime.UTC) - datetime.timedelta(days=adjusted_days) date_days_ago = datetime.datetime.now(datetime.UTC) - datetime.timedelta(days=adjusted_days)
timestamp = int(date_days_ago.timestamp()) timestamp = int(date_days_ago.timestamp())
hex_timestamp = format(timestamp, '08x') hex_timestamp = format(timestamp, '08x')