yandextank/plugins/ShootExec/plugin.py
def _read_data(self, lines):
        """
        Parse lines and return stats
        """

        results = []
        for line in lines:
            timestamp, rps, instances = line.split("\t")
            curr_ts = int(float(timestamp))  # We allow floats here, but tank expects only seconds
            if self.__last_ts < curr_ts:
                self.__last_ts = curr_ts
                results.append(self.stats_item(self.__last_ts, float(rps), float(instances)))
        return results
def _read_data(self, lines):
        results = []
        for line in lines:
            timestamp, rps, instances = line.split("\t")
            curr_ts = int(float(timestamp))  # We allow floats here, but tank expects only seconds
            if self.__last_ts < curr_ts:
                self.__last_ts = curr_ts
                results.append(self.stats_item(self.__last_ts, float(rps), float(instances)))
        return results
def _read_data ( self , lines ) : results = [ ] for line in lines : timestamp , rps , instances = line . split ( "\t" ) curr_ts = int ( float ( timestamp ) ) # We allow floats here, but tank expects only seconds if self . __last_ts < curr_ts : self . __last_ts = curr_ts results . append ( self . stats_item ( self . __last_ts , float ( rps ) , float ( instances ) ) ) return results
Parse lines and return stats
Parse lines and return stats