From b36a4717fd41dd63cb7eadd27425a136a857513f Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 3 Jan 2007 18:42:17 -0500 Subject: Only calculate stats on certain URLs for more accurate reporting. --- cobbler/action_status.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'cobbler/action_status.py') diff --git a/cobbler/action_status.py b/cobbler/action_status.py index 2c0fba1..bbe3190 100644 --- a/cobbler/action_status.py +++ b/cobbler/action_status.py @@ -84,7 +84,12 @@ class BootStatusReport: # keep track of when IP addresses's finish. Right now, we don't # care much about profile or system name but can get this later. - + + if filepath.find("/cobbler_track/") != -1: + # it's a regular cobbler path, not a cobbler_track one, so ignore it. + # the logger doesn't need to log these anyway, but it might in the future. + # this is just an extra safeguard. + pass if filepath.find("?system_done") != -1: done[ip].append(epoch) elif filepath.find("?profile_done") != -1: @@ -92,9 +97,9 @@ class BootStatusReport: else: files[ip][epoch] = filepath - # FIXME: what's a good way to see when systems START? For FC6+ - # it will install via yum, so xml and xml.gz files come first. - # elsewhere, that's not true. + # FIXME: calculate start times for each IP as defined as earliest file + # requested after each stop time, or the first file requested if no + # stop time. logfile.close() -- cgit