From fee99a041c528e1e73efc9a1b0cd345d71e8e74a Mon Sep 17 00:00:00 2001 From: Roel Date: Thu, 24 Apr 2014 19:32:02 +0200 Subject: [PATCH] added roadmap + fix indent error in main --- lazyinstall/lazyinstall1.sh | 2 +- main.py | 3 ++- meshenger_roadmap | 6 ++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 meshenger_roadmap diff --git a/lazyinstall/lazyinstall1.sh b/lazyinstall/lazyinstall1.sh index 8841f36..c5224ad 100644 --- a/lazyinstall/lazyinstall1.sh +++ b/lazyinstall/lazyinstall1.sh @@ -17,7 +17,7 @@ mount -t ext4 /dev/sda1 /mnt/sda1 echo 'Cleaning USB drive' -rm -r /mnt/sda1 +rm -r /mnt/sda1/ sleep 4 diff --git a/main.py b/main.py index b965136..48c6f88 100755 --- a/main.py +++ b/main.py @@ -48,6 +48,7 @@ class Meshenger: while True: print 'Entering main loop' + # if len(self.devices) > 0: print 'found', len(self.devices),'device(s)' @@ -187,7 +188,7 @@ Get new messages from other node based on it's index file Convert a node's ip into a hash and make a directory to store it's files """ if not os.path.exists('nodes'): - os.mkdir('nodes') + os.mkdir('nodes') import hashlib hasj = hashlib.md5(ip).hexdigest() diff --git a/meshenger_roadmap b/meshenger_roadmap new file mode 100644 index 0000000..58bd3ee --- /dev/null +++ b/meshenger_roadmap @@ -0,0 +1,6 @@ +-find a way to prioritize the index/message download threads. Perhaps these threads could tell other threads to pause? + +-nodes that are new to the network don't immediately download indices from the other nodes + +-nodes that disconnect from the network should be removed from lists of known devices +