ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/parseCrabFjr.py
(Generate patch)

Comparing COMP/CRAB/python/parseCrabFjr.py (file contents):
Revision 1.3 by gutsche, Thu Oct 12 19:04:51 2006 UTC vs.
Revision 1.6 by fanzago, Wed Jan 9 22:52:38 2008 UTC

# Line 2 | Line 2
2  
3   import sys, getopt, string
4  
5 < from FwkJobRep.ReportParser import readJobReport
5 > from ProdCommon.FwkJobRep.ReportParser import readJobReport
6   from DashboardAPI import apmonSend, apmonFree
7  
8  
# Line 58 | Line 58 | def main(argv) :
58      # load FwkJobRep
59      jobReport = readJobReport(input)[0]
60  
61 <    exit_satus = ''
61 >    exit_status = ''
62      
63      # get ExitStatus of last error
64      if len(jobReport.errors) != 0 :
# Line 115 | Line 115 | def main(argv) :
115              for action in report[protocol].keys() :
116                  try: size = float(report[protocol][action][2])
117                  except: size = 'NULL'
118 <                try: time = float(report[protocol][action][3])*1000
118 >                try: time = float(report[protocol][action][3])/1000
119                  except: time = 'NULL'
120                  dashboard_report['io_'+protocol+'_'+action] = str(size)+'_'+str(time)
121  
# Line 134 | Line 134 | def main(argv) :
134      for key in dashboard_report.keys() :
135          exit_string += ';' + str(key) + '=' + str(dashboard_report[key])
136  
137 +    
138 +
139      return exit_string
140  
141  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines