Change time_as_integer from a property to get_time_as_integer method.

This commit is contained in:
Mike Auty
2018-12-08 18:00:44 +00:00
parent 918653e398
commit 649a39a13d
2 changed files with 17 additions and 23 deletions
+1 -2
View File
@@ -4,7 +4,6 @@ typically found in Linux's /proc file system.
import datetime
import struct
from operator import attrgetter
from volatility.framework import constants, renderers, symbols
from volatility.framework.configuration import requirements
@@ -71,7 +70,7 @@ class Bash(plugins.PluginInterface):
if hist.is_valid():
history_entries.append(hist)
for hist in sorted(history_entries, key = attrgetter('time_as_integer')):
for hist in sorted(history_entries, key = lambda x: x.get_time_as_integer()):
yield (0, (task.pid, task_name, hist.get_time_object(), hist.get_command()))
def run(self):