Changeset 313 for trunk/lib/utility.cc


Ignore:
Timestamp:
May 17, 2007, 1:40:44 PM (14 years ago)
Author:
Peter Johansson
Message:

precentage in tables, fixes #194

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.cc

    r309 r313  
    111111
    112112
     113  int percent(int a, int b)
     114  {
     115    if (b)
     116      return (100*a)/b;
     117    return 0;
     118  }
     119
     120
    113121  bool node_exist(const std::string& path)
    114122  {
Note: See TracChangeset for help on using the changeset viewer.