forked from github/pelican
add a sleep to the autoreload loop since we dont need too high cpu load
This commit is contained in:
parent
24c3447d6c
commit
d03a412e5b
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import argparse
|
||||
import os
|
||||
import time
|
||||
|
||||
from pelican.generators import (ArticlesGenerator, PagesGenerator,
|
||||
StaticGenerator, PdfGenerator)
|
||||
|
|
@ -142,6 +143,7 @@ def main():
|
|||
pelican.run()
|
||||
except KeyboardInterrupt:
|
||||
break
|
||||
time.sleep(.5) # sleep to avoid cpu load
|
||||
else:
|
||||
pelican.run()
|
||||
except Exception, e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue