diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-01-03 18:42:17 -0500 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-01-03 18:42:17 -0500 |
commit | b36a4717fd41dd63cb7eadd27425a136a857513f (patch) | |
tree | 0e939a2aba4b2cf53e6981cf395ef708e01bc94e /cobbler/action_status.py | |
parent | 782a561b76aa413c5098ac557ffde02dc6e4f7a9 (diff) | |
download | third_party-cobbler-b36a4717fd41dd63cb7eadd27425a136a857513f.tar.gz third_party-cobbler-b36a4717fd41dd63cb7eadd27425a136a857513f.tar.xz third_party-cobbler-b36a4717fd41dd63cb7eadd27425a136a857513f.zip |
Only calculate stats on certain URLs for more accurate reporting.
Diffstat (limited to 'cobbler/action_status.py')
-rw-r--r-- | cobbler/action_status.py | 13 |
1 files changed, 9 insertions, 4 deletions
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() |