VirtualBox

Ignore:
Timestamp:
Mar 15, 2013 3:34:54 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84307
Message:

Main/Metrics: handle less common cases for FS to disk resolution (#6345)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/solaris/PerformanceSolaris.cpp

    r44529 r45051  
    7474    virtual int getRawProcessCpuLoad(RTPROCESS process, uint64_t *user, uint64_t *kernel, uint64_t *total);
    7575
    76     virtual int getDiskListByFs(const char *name, DiskList& list);
     76    virtual int getDiskListByFs(const char *name, DiskList& listUsage, DiskList& listLoad);
    7777private:
    7878    static uint32_t getInstance(const char *pszIfaceName, char *pszDevName);
     
    665665}
    666666
    667 int CollectorSolaris::getDiskListByFs(const char *name, DiskList& list)
     667int CollectorSolaris::getDiskListByFs(const char *name, DiskList& listUsage, DiskList& listLoad)
    668668{
    669669    FsMap::iterator it = mFsMap.find(name);
     
    708708                                pszStart += 8; // Skip "/devices"
    709709                                *pszEnd = '\0'; // Trim partition
    710                                 list.push_back(physToInstName(pszStart));
     710                                listUsage.push_back(physToInstName(pszStart));
    711711                            }
    712712                        }
     
    719719    }
    720720    else
    721         list.push_back(pathToInstName(it->second.c_str()));
     721        listUsage.push_back(pathToInstName(it->second.c_str()));
     722    listLoad = listUsage;
    722723    return VINF_SUCCESS;
    723724}
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