Skip to content

Commit

Permalink
Removed old/duplicated methods and functions, outdated comments, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
thefunkjunky committed Dec 11, 2015
1 parent 7d518ba commit be8f2e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PYTHON/activityLog/activityLog.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ def dateString(self, epoch = False):
return time.time()
elif epoch != True:
# using UTC (Similar to GMC)
# strftime converts the struct_time format into a string. see documentation
dateTime = datetime.utcnow().strftime("%mm_%dd_%Yy__at_UTC_%Hh_%Mm_%Ss")
return dateTime


def rootFsRwRoStateCheck(self):
# Checks to see if root (/) directory is read/write
try:
# Same thing as running "mounts" output
# Same output as running "mount" in BASH
with open("/proc/mounts", "r") as f:
for line in f:
# Look for line with root (/) dir and "rw" in the line
Expand Down

0 comments on commit be8f2e3

Please sign in to comment.