Просмотр исходного кода

Fix select timeout to be 50msec instead of 0.5msec

Closes: #799857
Michael Vogt лет назад: 10
Родитель
Сommit
eaf21c2144
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      apt-pkg/acquire.h
  2. 1 1
      apt-pkg/install-progress.h

+ 1 - 1
apt-pkg/acquire.h

@@ -281,7 +281,7 @@ class pkgAcquire
     *
     *
     *  \return the result of the download.
     *  \return the result of the download.
     */
     */
-   RunResult Run(int PulseInterval=500000);
+   RunResult Run(int PulseInterval=50000000);
 
 
    /** \brief Remove all items from this download process, terminate
    /** \brief Remove all items from this download process, terminate
     *  all download workers, and empty all queues.
     *  all download workers, and empty all queues.

+ 1 - 1
apt-pkg/install-progress.h

@@ -42,7 +42,7 @@ namespace Progress {
 
 
     virtual void Pulse() {};
     virtual void Pulse() {};
     virtual long GetPulseInterval() {
     virtual long GetPulseInterval() {
-         return 500000;
+         return 50000000;
     };
     };
 
 
     virtual bool StatusChanged(std::string PackageName,
     virtual bool StatusChanged(std::string PackageName,