~ubuntu-branches/ubuntu/trusty/apt/trusty

« back to all changes in this revision

Viewing changes to methods/http.cc

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2014-02-07 21:03:22 UTC
  • mfrom: (1.4.80 sid)
  • Revision ID: package-import@ubuntu.com-20140207210322-s7f833aga98ibdkm
Tags: 0.9.15.1ubuntu1
mergedĀ fromĀ debian/sid

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
#include <sys/stat.h>
38
38
#include <sys/time.h>
39
 
#include <utime.h>
40
39
#include <unistd.h>
41
40
#include <signal.h>
42
41
#include <stdio.h>
97
96
   is non-blocking.. */
98
97
bool CircleBuf::Read(int Fd)
99
98
{
100
 
   unsigned long long BwReadMax;
101
 
 
102
99
   while (1)
103
100
   {
104
101
      // Woops, buffer is full
106
103
         return true;
107
104
 
108
105
      // what's left to read in this tick
109
 
      BwReadMax = CircleBuf::BwReadLimit/BW_HZ;
 
106
      unsigned long long const BwReadMax = CircleBuf::BwReadLimit/BW_HZ;
110
107
 
111
108
      if(CircleBuf::BwReadLimit) {
112
109
         struct timeval now;