system/helpers.cpp: add return value for mySleep()

Origin commit data
------------------
Branch: ni/coolstream
Commit: c9dd6fac39
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-01-14 (Wed, 14 Jan 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2015-01-14 21:44:14 +01:00
parent 1cc532eea3
commit 8031b9fce0
2 changed files with 3 additions and 3 deletions

View File

@@ -47,12 +47,12 @@
#include <gui/update_ext.h> #include <gui/update_ext.h>
using namespace std; using namespace std;
void mySleep(int sec) { int mySleep(int sec) {
struct timeval timeout; struct timeval timeout;
timeout.tv_sec = sec; timeout.tv_sec = sec;
timeout.tv_usec = 0; timeout.tv_usec = 0;
select(0,0,0,0, &timeout); return select(0,0,0,0, &timeout);
} }
off_t file_size(const char *filename) off_t file_size(const char *filename)

View File

@@ -52,7 +52,7 @@ void wakeup_hdd(const char *hdd_dir);
int check_dir(const char * dir, bool allow_tmp = false); int check_dir(const char * dir, bool allow_tmp = false);
bool get_fs_usage(const char * dir, uint64_t &btotal, uint64_t &bused, long *bsize=NULL); bool get_fs_usage(const char * dir, uint64_t &btotal, uint64_t &bused, long *bsize=NULL);
bool get_mem_usage(unsigned long &total, unsigned long &free); bool get_mem_usage(unsigned long &total, unsigned long &free);
void mySleep(int sec); int mySleep(int sec);
std::string find_executable(const char *name); std::string find_executable(const char *name);
/* basically what "foo=`command`" does in the shell */ /* basically what "foo=`command`" does in the shell */