Changeset 1004


Ignore:
Timestamp:
Jan 2, 2010, 5:22:43 PM (12 years ago)
Author:
Peter Johansson
Message:

minor speed-up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.cc

    r1003 r1004  
    44  Copyright (C) 2005 Peter Johansson
    55  Copyright (C) 2006, 2007, 2008, 2009 Jari Häkkinen, Peter Johansson
     6  Copyright (C) 2010 Peter Johansson
    67
    78  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    377378    assert(stat->find("all")!=stat->end());
    378379    std::vector<unsigned int> total=get_vector(*stat, "all");   
    379     double yrange_max=1.03 * *std::max_element(total.begin(), total.end()) +1.0;
     380    double yrange_max=1.03 * max_element(total) +1.0;
    380381    gp.ymax(yrange_max);
    381382
Note: See TracChangeset for help on using the changeset viewer.