Use ecore_time_unix_get() when absolute value is needed

SVN revision: 52827
devs/princeamd/enlightenment-0.17-elive
Lucas De Marchi 13 years ago
parent 703e5a159e
commit b7cbb20980
  1. 4
      src/bin/e_exehist.c
  2. 6
      src/bin/e_fm_main.c
  3. 6
      src/bin/e_main.c
  4. 2
      src/modules/everything-files/e_mod_main.c
  5. 2
      src/modules/everything/evry.c
  6. 6
      src/modules/everything/evry_history.c

@ -96,7 +96,7 @@ e_exehist_add(const char *launch_method, const char *exe)
ei->launch_method = eina_stringshare_add(launch_method);
ei->exe = eina_stringshare_add(exe);
ei->normalized_exe = _e_exehist_normalize_exe(exe);
ei->exetime = ecore_time_get();
ei->exetime = ecore_time_unix_get();
_e_exehist->history = eina_list_append(_e_exehist->history, ei);
_e_exehist_limit();
_e_exehist_changes++;
@ -311,7 +311,7 @@ e_exehist_mime_desktop_add(const char *mime, Efreet_Desktop *desktop)
}
ei->launch_method = eina_stringshare_add(mime);
ei->exe = eina_stringshare_add(f);
ei->exetime = ecore_time_get();
ei->exetime = ecore_time_unix_get();
_e_exehist->mimes = eina_list_append(_e_exehist->mimes, ei);
_e_exehist_limit();
_e_exehist_changes++;

@ -2022,7 +2022,7 @@ _e_cb_recent_clean(void *data)
ed = data;
ed->cleaning = 1;
t_now = ecore_time_get();
t_now = ecore_time_unix_get();
EINA_LIST_FOREACH_SAFE(ed->recent_mods, pl, l, m)
if ((m->mod) && ((t_now - m->timestamp) >= DEF_MOD_BACKOFF))
{
@ -2059,7 +2059,7 @@ _e_file_add_mod(E_Dir *ed, const char *path, E_Fm_Op_Type op, int listing)
double t_now;
int skip = 0;
t_now = ecore_time_get();
t_now = ecore_time_unix_get();
EINA_LIST_FOREACH(ed->recent_mods, l, m)
{
if ((m->mod) && (!strcmp(m->path, path)))
@ -2088,7 +2088,7 @@ _e_file_add_mod(E_Dir *ed, const char *path, E_Fm_Op_Type op, int listing)
return;
}
}
// printf("MOD %s %3.3f\n", path, ecore_time_get());
// printf("MOD %s %3.3f\n", path, ecore_time_unix_get());
lnk = ecore_file_readlink(path);
memset(&st, 0, sizeof(struct stat));
if (stat(path, &st) == -1)

@ -102,7 +102,7 @@ static Ecore_Idle_Enterer *_e_main_idle_enterer_flusher = NULL;
#ifdef TS_DO
#define TS(x) \
{ \
t1 = ecore_time_get(); \
t1 = ecore_time_unix_get(); \
printf("ESTART: %1.5f [%1.5f] - %s\n", t1 - t0, t1 - t2, x); \
t2 = t1; \
}
@ -137,7 +137,7 @@ main(int argc, char **argv)
double t, tstart;
#ifdef TS_DO
t0 = t1 = t2 = ecore_time_get();
t0 = t1 = t2 = ecore_time_unix_get();
#endif
TS("begin");
@ -183,7 +183,7 @@ main(int argc, char **argv)
TS("signals done");
t = ecore_time_get();
t = ecore_time_unix_get();
s = getenv("E_START_TIME");
if ((s) && (!getenv("E_RESTART_OK")))
{

@ -26,7 +26,7 @@ FIXME
#define ACT_SORT_NAME 6
#define ONE_DAY 86400.0
#define SIX_DAYS_AGO (ecore_time_get() - ONE_DAY * 6)
#define SIX_DAYS_AGO (ecore_time_unix_get() - ONE_DAY * 6)
#define MIN_USAGE 0.0
/* #undef DBG

@ -1895,7 +1895,7 @@ _evry_cheat_history(Evry_State *s, int promote, int delete)
else if (promote)
{
hi->count += 5;
hi->last_used = ecore_time_get();
hi->last_used = ecore_time_unix_get();
}
else /* demote */
{

@ -170,7 +170,7 @@ evry_history_free(void)
if (evry_hist)
{
d = E_NEW(Cleanup_Data, 1);
d->time = ecore_time_get();
d->time = ecore_time_unix_get();
if (evry_hist->subjects)
{
@ -207,7 +207,7 @@ evry_history_load(void)
{
evry_hist = E_NEW(Evry_History, 1);
evry_hist->version = HISTORY_VERSION;
evry_hist->begin = ecore_time_get() - SEVEN_DAYS;
evry_hist->begin = ecore_time_unix_get() - SEVEN_DAYS;
}
if (!evry_hist->subjects)
evry_hist->subjects = eina_hash_string_superfast_new(NULL);
@ -322,7 +322,7 @@ evry_history_item_add(Evry_Item *it, const char *ctxt, const char *input)
{
it->hi = hi;
hi->last_used = ecore_time_get();
hi->last_used = ecore_time_unix_get();
hi->usage /= 4.0;
hi->usage += TIME_FACTOR(hi->last_used);
hi->transient = it->plugin->transient;

Loading…
Cancel
Save