Skip to content

Added quiality-of-life improvements #817

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 13, 2021

Conversation

CodeLongAndProsper90
Copy link
Contributor

Added check for screen clear for non-UNIX systems, exit codes for various errors, and uses UNIX time instead of datetime.

Added check for screen clear for non-UNIX systems, exit codes for various errors, and uses UNIX time instead of datetime.
Copy link
Contributor

@bupboi1337 bupboi1337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me!

@@ -71,10 +71,11 @@ Open up an text editor, copy & paste the code below. Save the file as:
import socket
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to list the requirements in a txt file.


# Checking the time again
t2 = datetime.now()
t2 = time()

# Calculates the difference of time, to see how long it took to run the script
total = t2 - t1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace total with runtime for extra readability or t3 for smaller file size

@@ -71,10 +71,11 @@ Open up an text editor, copy & paste the code below. Save the file as:
import socket
import subprocess
import sys
from datetime import datetime
from time import time
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why time instead of datetime?

@geekcomputers geekcomputers merged commit 9632d80 into geekcomputers:master Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants