def mcycles_to_seconds(mcycles):
 if (mcycles is None):
  return 0
 return quota.megacycles_to_cpu_seconds(mcycles)

def mcycles_to_seconds ( mcycles ) : if ( mcycles is None ) : return 0 return quota . megacycles_to_cpu_seconds ( mcycles )
helper function to convert megacycles to seconds .