VirtualBox

Changeset 40081 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Feb 12, 2012 12:57:42 PM (13 years ago)
Author:
vboxsync
Message:

VBoxManage: metrics collect fix for guest metrics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMetrics.cpp

    r33540 r40081  
    4242
    4343
     44static bool isLastSlash(const char *str)
     45{
     46    char c;
     47    while ((c = *str++))
     48    {
     49        if (c == ',')
     50            break;
     51        if (c == '/')
     52            return false;
     53    }
     54
     55    return true;
     56}
     57
    4458static char *toBaseMetricNames(const char *metricList)
    4559{
     
    5468            if (c == ':')
    5569                fSkip = true;
    56             else if (c == '/' && ++cSlashes == 2)
     70            else if (c == '/' && ++cSlashes >= 2 && isLastSlash(src))
    5771                fSkip = true;
    5872            else if (c == ',')
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette