Пример #1
0
void ServerAllocation::print(std::ostream& os) const
{
    os << "ServerAllocation["
       << "\r\tTuple=" << _tuple << "\r\tUsername="******"\n\tBandwidth Limit=" << bandwidthLimit()
       << "\n\tBandwidth Used=" << bandwidthUsed()
       << "\n\tBandwidth Remaining=" << bandwidthRemaining()
       << "\n\tBase Time Remaining=" << IAllocation::timeRemaining()
       << "\n\tTime Remaining=" << timeRemaining()
       << "\n\tMax Time Remaining=" << maxTimeRemaining()
       << "\n\tDeletable=" << IAllocation::deleted()
       << "\n\tExpired=" << expired() << "]" << endl;
}
std::int64_t ServerAllocation::timeRemaining() const
{
    //Mutex::ScopedLock lock(_mutex);    
    return min<std::int64_t>(IAllocation::timeRemaining(), maxTimeRemaining());
}
Пример #3
0
std::int64_t ServerAllocation::timeRemaining() const
{
   
    return min<std::int64_t>(IAllocation::timeRemaining(), maxTimeRemaining());
}