Fix calulation of badput and lasted, and fix minor bug - merge from branch_v2_4plus_igor_ucsd1
Fix calulation of badput and lasted, and fix minor bug - merge from branch_v2_4plus_igor_ucsd1

holzman/glideinwms-old,holzman/glideinwms-old,bbockelm/glideinWMS,bbockelm/glideinWMS,bbockelm/glideinWMS,holzman/glideinwms-old,bbockelm/glideinWMS