mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
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:
@@ -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)
|
||||||
|
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user