lp:fotoknox
- Get this branch:
- bzr branch lp:fotoknox
Related bugs
Related blueprints
Branch information
Recent revisions
- 9. By Christopher Wells <email address hidden>
-
Dispatcher updates
OK, the dispatcher actually does something now. The modification time
of the dropbox is checked by the dispatcher, and compared against
another time stored in (/var/fotoknox/run/mtime) . If the dropbox has
been modified since the last recorded time, we process it. Processing
the dropbox will later include importing the new photos. Right now, the
dispatcher simple updates the mtime of the directory, and the time
stored in the mtime file mentioned above.Ideally this file should be broken up into methods, and perhaps even
some of the functionality should be moved to a library.The config file has also received a new entry runtime_dir which points
to the location of a directory holding runtime files (mtime, pid,
etc...). - 8. By Christopher Wells <email address hidden>
-
GPLv2 added
This project is being license under the GPLv2, and so as per the
requirements of the license, the license itself has been added to the
doc/ directory as license.txt. A license header was also added to all
the source files. - 7. By Christopher Wells <email address hidden>
-
Added python based config, started real work on dispatcher.
- 6. By Christopher Wells <email address hidden>
-
Moved things around
I decided that since Python would be used more universally, creating a more appropriate directory structure would be in order.
Executable code will now be placed into the 'bin' directory. Non-executable code libraries will of course go into 'lib', and documentation goes...yep, into the 'doc' folder. I want things to be pretty easy to understand, so hopefully this helps.
- 5. By Christopher Wells <email address hidden>
-
Switching to Python for dispatcher.
For various reasons the dispatcher will be written in Python.
- 4. By Christopher Wells <cwells@treebeard>
-
Added a python based dispatcher
The python dispatcher was much easier to code, but as was assumed, is slower.
cwells@
treebeard: ~/Fotoknox/ src/dispatcher$ time ./knoxd.py
Files: 1570real 0m0.060s
user 0m0.050s
sys 0m0.010scwells@
treebeard: ~/Fotoknox/ src/dispatcher$ time ./a.out
Files: 1571real 0m0.008s
user 0m0.000s
sys 0m0.000sThe C++ implementation is obviously faster, and seems to find 1 more file (should investigate this!). The question remains however, does the speed difference warrent the increased complexity of writing the daemon in C++.
- 1. By Christopher Wells <cwells@treebeard>
-
The beginnings of the dispatcher daemon.
Currently the daemon checks '/usr/bin' for files, and then reports how many there are. This process repeats indefinitely, every 5 seconds.
Branch metadata
- Branch format:
- Branch format 6
- Repository format:
- Bazaar pack repository format 1 (needs bzr 0.92)