~ubuntu-branches/ubuntu/wily/kdebase-workspace/wily

« back to all changes in this revision

Viewing changes to libs/ksysguard/scripts/smaps/main.js

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2011-04-03 16:54:55 UTC
  • mfrom: (1.1.55 upstream)
  • Revision ID: james.westby@ubuntu.com-20110403165455-8tnwxt82p21p15hh
Tags: 4:4.6.2a-0ubuntu1
* New upstream release
  - Update kde-sc-dev-latest version
  - Update kdebase-workspace-wallpapers.install,
    kde-window-manager.install and not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    var headingRegex = /^([0-9A-Fa-f]+-[0-9A-Fa-f]+) +([^ ]*) +([0-9A-Fa-f]+) +([0-9A-Fa-f]+:[0-9A-Fa-f]+) +(\d+) +(.*)$/;
50
50
    var lineRegex = /^([^ ]+): +(\d+) kB$/;
51
51
    for(var i = 0; i < smaps.length; i++) {
52
 
        lineMatch = lineRegex.exec(smaps[i]);
 
52
        var lineMatch = lineRegex.exec(smaps[i]);
 
53
        var headingMatch;
53
54
        if(lineMatch) {
54
55
            var key = lineMatch[1];
55
56
            dataBlock[ key ] = parseInt(lineMatch[2], 10);  /* E.g.  dataBlock.Size = 84 */