Changeset 1489
- Timestamp:
- Aug 21, 2012, 5:11:20 AM (10 years ago)
- Location:
- branches/0.9-stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9-stable/THANKS
r1090 r1489 22 22 is licensed under GNU GPL <http://www.gnu.org/licenses/>. 23 23 24 Vedran Ljubovic for reporting bug #515 25 24 26 ----------------------------------------------------------------------- 25 27 {{{ -
branches/0.9-stable/lib/Stats.cc
r1276 r1489 4 4 Copyright (C) 2005 Peter Johansson 5 5 Copyright (C) 2006, 2007, 2008, 2009 Jari Häkkinen, Peter Johansson 6 Copyright (C) 2010 Peter Johansson6 Copyright (C) 2010, 2012 Peter Johansson 7 7 8 8 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 242 242 if (iter==m.end() || iter->second.empty()) 243 243 return 0; 244 assert(iter->second.size()); 244 245 return iter->second.back(); 245 246 } … … 476 477 Colors::instance().get_color(label, r,g,b); 477 478 gp.current_color(r,g,b); 478 gp.plot(others, label, others. back());479 gp.plot(others, label, others.size() ? others.back() : 0); 479 480 } 480 481 for ( ; i!=end; ++i) { … … 513 514 const SumVector& x(get_vector(code_stats(), "all")); 514 515 gp.current_color(255,255,0); 516 assert(x.size()); 515 517 gp.plot(x, "code", x.back()); 516 518 517 519 const SumVector& y = get_vector(comment_or_copy_stats(), "all"); 518 520 gp.current_color(0,0,255); 521 assert(y.size()); 519 522 gp.plot(y, "comment", y.back()); 520 523 521 524 const SumVector& z = get_vector(other_stats(), "all"); 522 525 gp.current_color(0,255,0); 526 assert(z.size()); 523 527 gp.plot(z, "other", z.back()); 524 528 525 529 gp.current_color(255,0,0); 530 assert(total.size()); 526 531 gp.plot(total, "total", total.back()); 527 532 }
Note: See TracChangeset
for help on using the changeset viewer.