search for: current_tim

Displaying 20 results from an estimated 88 matches for "current_tim".

Did you mean: current_time
2009 Apr 07
4
/lib daemon folder: how do i add a module into the daemon?
...dirname(__FILE__) + "/../../lib/basic_functions.rb"(this didn''t work) #require ''../basic_functions.rb'' (this didn''t work) $running = true Signal.trap("TERM") do $running = false end while($running) do # Replace this with your code get_current_time ActiveRecord::Base.logger.info "This daemons is still running at # {@current_time}.\n" sleep 5 end contents of basic_functions module BasicFunctions def get_current_time #@current_time = Time.now.beginning_of_month + 27.days #@current_time = Time.now.beginning_of_month + 13...
2023 Jun 21
4
[PATCH 01/79] fs: add ctime accessors infrastructure
...| 16 ++++++++++++++ include/linux/fs.h | 53 +++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 68 insertions(+), 1 deletion(-) diff --git a/fs/inode.c b/fs/inode.c index d37fad91c8da..c005e7328fbb 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -2499,6 +2499,22 @@ struct timespec64 current_time(struct inode *inode) } EXPORT_SYMBOL(current_time); +/** + * inode_ctime_set_current - set the ctime to current_time + * @inode: inode + * + * Set the inode->i_ctime to the current value for the inode. Returns + * the current value that was assigned to i_ctime. + */ +struct timespec64 inode...
2023 Jan 18
9
remove most callers of write_one_page v3
Hi all, this series removes most users of the write_one_page API. These helpers internally call ->writepage which we are gradually removing from the kernel. Changes since v2: - more minix error handling fixes Changes since v1: - drop the btrfs changes (queue up in the btrfs tree) - drop the finaly move to jfs (can't be done without the btrfs patches) - fix the existing minix code to
2008 Jul 08
3
undefined method `name' ...........
...ng ROR, and I''m using Patrick Lens ''Ruby on Rails'' book. (This is written for ror 1.x - and I''m using NetBeans 6.1 - ror 2.x - this might be the problem...) But... I have made this Controller: class StoryController < ApplicationController def index @current_time = Time.now @s = Story.find_all_by_name(''sitepoint'') end end and this view: <h1>Story#index</h1> hej <%= @current_time %> <%= @s.name%> <p>Find me in app/views/story/index.html.erb</p> And, when browsing my ''story'' (ht...
2009 Mar 03
2
Passing an SQL fragment in AR save
I have a basic model class TestTime with no customization. class TestTime < ActiveRecord::Base end I would like to pass the following SQL fragment as part of an AR save call to TestTime objects. How and where would I do this in the model? "set c_time=current_time" (current_time is an SQL method, not a variable). -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send ema...
2007 Jun 27
0
Branch 'as' - libswfdec/swfdec_as_strings.c libswfdec/swfdec_net_stream_as.c libswfdec/swfdec_net_stream.c
...insensitive comparisons? */ + if (variable == SWFDEC_AS_STR_time) { + guint msecs; + if (stream->flvdecoder == NULL || + !swfdec_flv_decoder_get_video_info (stream->flvdecoder, &msecs, NULL)) { + SWFDEC_AS_VALUE_SET_INT (val, 0); + } else { + if (msecs >= stream->current_time) + msecs = 0; + else + msecs = stream->current_time - msecs; + } + SWFDEC_AS_VALUE_SET_NUMBER (val, msecs / 1000.); + *flags = 0; + return TRUE; + } else if (variable == SWFDEC_AS_STR_bytesLoaded) { + if (stream->loader == NULL) + SWFDEC_AS_VALUE_SET_INT (val, 0);...
2007 Jun 21
0
Branch 'as' - 5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_connection.c libswfdec/swfdec_net_stream_as.c libswfdec/swfdec_net_stream.c
...object (cx, obj, SWFDEC_TYPE_NET_STREAM); - if (stream == NULL) - return JS_TRUE; - - if (stream->flvdecoder == NULL || - !swfdec_flv_decoder_get_video_info (stream->flvdecoder, &msecs, NULL)) { - *vp = INT_TO_JSVAL (0); - return JS_TRUE; - } - if (msecs >= stream->current_time) - msecs = 0; - else - msecs = stream->current_time - msecs; - - return JS_NewNumberValue (cx, msecs / 1000., vp); -} - -static JSBool -swfdec_js_net_stream_bytes_loaded (JSContext *cx, JSObject *obj, jsval id, jsval *vp) -{ - SwfdecNetStream *stream; - - stream = swfdec_scriptable_fr...
2017 Apr 08
3
Failures after update Samba 4.6.2
On Sat, 8 Apr 2017 15:18:18 +0000 (UTC) Ricardo Pardim Claus via samba <samba at lists.samba.org> wrote: > Gentlemen, > > I upgraded my two DCs, from Samba 4.4.5 to 4.6.2. > When I check the database, I get the errors below. > Could someone help me in this case? > try 'samba-tool domain tombstones expunge' Rowland
2016 Oct 26
2
Attempting to expunge tombstones with samba-tool
...ject has no attribute 'time' File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 176, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", line 3791, in run current_time = long(time.time()) I recently updated from 4.5.0 to 4.5.1. Do I need to reanimate deleted objects before I can expunge them? Thanks. -- - James
2007 Mar 14
0
10 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loadertarget.c
...wfdec_net_stream_update_playing (SwfdecNetStream *stream); +static void swfdec_net_stream_video_goto (SwfdecNetStream *stream, guint timestamp) { SwfdecBuffer *buffer; @@ -76,6 +107,15 @@ swfdec_net_stream_video_goto (SwfdecNetS } } } + if (stream->next_time <= stream->current_time) { + if (swfdec_flv_decoder_is_eof (stream->flvdecoder)) { + swfdec_net_stream_onstatus (stream, "NetStream.Play.Stop", "status"); + } else { + stream->buffering = TRUE; + swfdec_net_stream_onstatus (stream, "NetStream.Buffer.Empty", "s...
2017 Apr 08
4
Failures after update Samba 4.6.2
...ime' >   File "/usr/local/samba/lib64/python2.7/site- > packages/samba/netcmd/__init__.py", line 176, in _run >     return self.run(*args, **kwargs) >   File "/usr/local/samba/lib64/python2.7/site- > packages/samba/netcmd/domain.py", line 3790, in run >     current_time = long(time.time()) In this case you have an old time.pyc or time.py file in your install. Clean our the old binaries and python files from your install and re- run make install. It won't help however, as the links you show are both not deleted and point to an object that doesn't exist....
2007 Mar 20
0
5 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_net_stream.c
...rget_parse (S } out: if (loader->eof) { + guint first, last; swfdec_flv_decoder_eof (stream->flvdecoder); recheck = TRUE; swfdec_net_stream_onstatus (stream, "NetStream.Buffer.Flush", "status"); swfdec_net_stream_video_goto (stream, stream->current_time); stream->buffering = FALSE; + if (swfdec_flv_decoder_get_video_info (stream->flvdecoder, &first, &last) && + stream->current_time + stream->buffer_time <= last) { + swfdec_net_stream_onstatus (stream, "NetStream.Buffer.Full", "status&quot...
2006 Feb 08
1
Possible AGI Bug in Asterisk?
...ot;_".$extn; $fname = $dir.$finame; $finame = $finame.".gsm"; # populate the DB with the required information # Agent, Filename, date, time # Get the Date and Time $gdate = $dbh->selectrow_array ("SELECT current_date()"); $gtime = $dbh->selectrow_array ("SELECT current_time()"); $date_time = "$gdate $gtime"; # Cross reference the Agent Phone with extension $phone = $dbh1->selectrow_array ("SELECT phone from map where extn = '$extn'"); $agent = $dbh1->selectrow_array ("SELECT UserID from agent where phone = '$phone'...
2023 Mar 07
0
+ ufs-dont-flush-page-immediately-for-dirsync-directories.patch added to mm-unstable branch
...struct inode *dir, str de->d_ino = cpu_to_fs32(dir->i_sb, inode->i_ino); ufs_set_de_type(dir->i_sb, de, inode->i_mode); - err = ufs_commit_chunk(page, pos, len); + ufs_commit_chunk(page, pos, len); ufs_put_page(page); if (update_times) dir->i_mtime = dir->i_ctime = current_time(dir); mark_inode_dirty(dir); + ufs_handle_dirsync(dir); } @@ -390,10 +396,11 @@ got_it: de->d_ino = cpu_to_fs32(sb, inode->i_ino); ufs_set_de_type(sb, de, inode->i_mode); - err = ufs_commit_chunk(page, pos, rec_len); + ufs_commit_chunk(page, pos, rec_len); dir->i_mtime =...
2016 Oct 26
2
Attempting to expunge tombstones with samba-tool
...sr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", >> line 176, in _run >> return self.run(*args, **kwargs) >> File >> "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", >> line 3791, in run >> current_time = long(time.time()) >> >> I recently updated from 4.5.0 to 4.5.1. Do I need to reanimate >> deleted objects before I can expunge them? Thanks. >> >> > That isn't your problem, if you look closely, you seem to have a problem > with your version of 'time...
2023 Jun 21
3
[PATCH 00/79] fs: new accessors for inode->i_ctime
I've been working on a patchset to change how the inode->i_ctime is accessed in order to give us conditional, high-res timestamps for the ctime and mtime. struct timespec64 has unused bits in it that we can use to implement this. In order to do that however, we need to wrap all accesses of inode->i_ctime to ensure that bits used as flags are appropriately handled. This patchset first
2009 May 19
2
[PATCH 1/1] OCFS2: timer to queue scan of all orphan slots
...d) +{ + return ORPHAN_SCAN_SCHEDULE_TIMEOUT; +} + +/* + * ocfs2_queue_delayed_orphan_scan, gets an EX lock on ds_lockres and checks + * LVB for recent scan time. If scanned recently than timeout, new scans are + * not queued, otherwise it queues recovery of all orphan slots and updates + * LVB with CURRENT_TIME + * What if the times are not in sync between nodes??? + */ +void ocfs2_queue_delayed_orphan_scan(struct ocfs2_super *osb) +{ + struct ocfs2_delayed_orphan_scan *ds; + int level = DLM_LOCK_EX; + struct timespec scan_time, now; + int status, i; + + ds = osb->osb_delayed_orphan_scan; + if (!ds)...
2023 Jun 21
2
[PATCH 00/79] fs: new accessors for inode->i_ctime
On Wed, 21 Jun 2023 10:45:05 -0400 Jeff Layton <jlayton at kernel.org> wrote: > Most of this conversion was done via coccinelle, with a few of the more > non-standard accesses done by hand. There should be no behavioral > changes with this set. That will come later, as we convert individual > filesystems to use multigrain timestamps. BTW, Linus has suggested to me that whenever
2001 Mar 20
2
ext3_rename ctime handling
...Mon Mar 19 22:55:03 2001 +++ fs/ext3/namei.c Mon Mar 19 22:53:40 2001 @@ -985,6 +985,13 @@ new_dir->i_version = ++global_event; /* + * Like most other Unix systems, set the ctime for inodes on a + * rename. + */ + old_inode->i_ctime = CURRENT_TIME; + ext3_mark_inode_dirty(old_inode); + + /* * ok, that's it */ --
2008 Jul 24
0
Re: Simple functional test fails
...Qqe8AvxtiuMwx3w@public.gmane.org>: > > Hi there: > > I''m starting with rails and I founded and issue that I can''t figure > out how to solve: > > - This is the controller: > class StoriesController < ApplicationController > def index > @current_time = Time.now > @story = Story.find_by_name(''txapelgorri'') > @rand_story = Story.find(:first, :order => ''RANDOM()'') > end > end > - This is the view: > <p>Time <%= @current_time %></p> > <p>A story...