search for: new_time

Displaying 12 results from an estimated 12 matches for "new_time".

Did you mean: new_mtime
2006 Apr 21
2
Using before_create and conflicting setter method...
...------------------------------------------------------------ ------- def set_campaign_start self.campaign_start = Time.now end # We want the date to always start at midnight #----------------------------------------------------------------------- ------- def campaign_start=(new_time) @campaign_start = new_time.utc.at_beginning_of_day end It sets @campaign_start in the object, but not the actual attribute, and therefore not in the DB. If I remove the setter method, the before_create works great. What is the correct way to do this? Thanks, Brett
2008 Mar 31
5
[LLVMdev] Additional Optimization I'm Missing?
...3 = load double* %population_next ; <double> [#uses=1] store double %population_next13, double* %population br label %forinc forinc: ; preds = %updatestocks %time14 = load double* %time ; <double> [#uses=1] %OS_timestep15 = load double* %OS_timestep ; <double> [#uses=1] %new_time = add double %time14, %OS_timestep15 ; <double> [#uses=1] store double %new_time, double* %time br label %forcond forafter: ; preds = %forcond ret void } And then I run the optimizations from the Kaleidoscope tutorial (mem2reg, predsimplify, instcombine, reassociate, gvn, simplifycfg...
2004 Jun 28
0
Broken BIOS time
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a BIOS that has a broken timer. I think tho that the user tick interrupt 1ch works. I was trying to write four functions in assembler to fix the problem. new_timer check_timer install_timer uninstall_timer The check timer was going to simply get the value of BIOS_timer use int 15h function 86h to sleep 1 tick then compare the two values. If they were different then the timer is OK. the new_timer was simply going to increment a variable. the install funct...
2006 May 13
1
undefined method `strftime'', being called from a partial.
Hi, I''m having an issue with calling a function that I''ve defined in ApplicationHelper called format_time: module ApplicationHelper def format_time(time) time.strftime("%a %b %d, %I:%M%p") end end I use this function in my views to format the Time.now that I would have stored in my tables as a DATETIME. I''m able to use this function, without any
2013 Mar 26
2
GAM model with interactions between continuous variables and factors
...ot;,..: 3 2 2 3 4 2 3 2 2 2 ... $ sex : Factor w/ 2 levels "Female","Male": 1 1 2 2 1 1 2 2 2 2 ... $ quinquennium : Factor w/ 7 levels "00-5's","70-4",..: 2 2 2 2 2 2 2 2 2 2 ... $ time.1 : int 3 3 3 3 3 3 3 3 3 3 ... $ new_time : int 0 0 0 0 0 0 0 0 0 0 ... $ maternal_age_c : num -6.12 -3.12 -3.12 -1.12 -3.12 ... $ birth_year_c : num -14.8 -14.8 -14.8 -14.8 -14.8 ... [[alternative HTML version deleted]]
2006 May 16
4
question about strftime when called from partial.
Hi, I''m calling a helper I''ve written - format_time() that is called from my views with a given time that was selected from my database and was returned to the view via an instance variable. When I call format_time from a partial, I see that I get some kind of String error and the partial won''t render. Basically, the object being passed in to format_time is already a
2009 Sep 04
3
2.6.31-rc8: CIFS with 5 seconds hiccups
.../cifs/transport.c: Sending smb: total_len 104 ---- 5 second hiccup Sep 4 16:21:48 rd-spare kernel: fs/cifs/connect.c: rfc1002 length 0xce Sep 4 16:21:48 rd-spare kernel: fs/cifs/connect.c: rfc1002 length 0xc0 Sep 4 16:21:48 rd-spare kernel: fs/cifs/inode.c: inode 0xf5876518 old_time=26000 new_time=32751 Sep 4 16:21:48 rd-spare kernel: fs/cifs/inode.c: cifs_revalidate - inode unchanged Sep 4 16:21:48 rd-spare kernel: fs/cifs/file.c: CIFS VFS: in cifs_writepages as Xid: 264 with uid: 0 Sep 4 16:21:48 rd-spare kernel: fs/cifs/file.c: CIFS VFS: leaving cifs_writepages (xid = 264) rc = 0 Se...
2002 Aug 02
0
[Bug 378] New: sshd does not update utmp/utmpx records correctly when "UseLogin" feature on
...eme basically ignores updating the records. I'll explain why below. -in the utmp/utmpx records, there is field, ut_type that records what state the record/user is in, i.e. #define EMPTY 0 #define RUN_LVL 1 #define BOOT_TIME 2 #define OLD_TIME 3 #define NEW_TIME 4 #define INIT_PROCESS 5 /* Process spawned by "init" */ #define LOGIN_PROCESS 6 /* A "getty" process waiting for login */ #define USER_PROCESS 7 /* A user process */ #define DEAD_PROCESS 8 #define ACCOUNTING 9 sshd is supposed to...
2007 Oct 07
0
Rails AR/Oracle Unit Test: [7769] failed (getting worse)
...est): NoMethodError: undefined method `<'' for nil:NilClass /usr/pkg/ruby184/lib/ruby/1.8/date.rb:557:in `valid_civil?'' /usr/pkg/ruby184/lib/ruby/1.8/date.rb:1171:in `new'' ./test/../lib/active_record/connection_adapters/abstract/schema_definitions.rb:166:in `new_time'' ./test/../lib/active_record/connection_adapters/abstract/schema_definitions.rb:116:in `string_to_time'' ./test/../lib/active_record/connection_adapters/abstract/schema_definitions.rb:60:in `type_cast'' /usr/pkg/ruby184/lib/ruby/gems/1.8/gems/activerecord-1.15.1...
2005 Feb 23
19
Calculating real cpu usage of Xen domains correctly!
...c_domain_get_cpu_usage). These two functions give you how much time (in nanoseconds, why is this not documented) the domain has been actively used. Approaches: 1) CPU time % measured per domain (The differential of cpu usage time / some differential time) x 100 new_cpu_time-old_cpu_time new_time-old_time This provides us with the % time the domain had activity ...but does not give us absolute real CPU usage. Another problem here is sometimes you will get percentages like %103 usage, because the cpu usage returned by theses functions looks to be measured slightly over a second. So this...
2002 Jul 23
2
Irix UseLogin wtmp/utmp bug
I am using the "UseLogin yes" configuration parameter to call the /usr/bin/login program on SGI Irix, (we are using Irix version 6.5.13). I do this because the SGI login program is AFS awhere and checks out a token for you and I do not want to compile the Kerberos version of sshd, (it is to messy for me to support). Everything seems to work fine accept the wtmp(x) and utmp(x) files do
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
...--void __exit cleanup_tpm_module(void) --{ -- tpm_emulator_shutdown(); -- misc_deregister(&tpm_dev); -- if (tpm_response.data != NULL) kfree(tpm_response.data); --} -- --module_init(init_tpm_module); --module_exit(cleanup_tpm_module); -- --uint64_t tpm_get_ticks(void) --{ -- struct timespec new_time = current_kernel_time(); -- uint64_t ticks = (uint64_t)(new_time.tv_sec - old_time.tv_sec) * 1000000 -- + (new_time.tv_nsec - old_time.tv_nsec) / 1000; -- old_time = new_time; -- return (ticks > 0) ? ticks : 1; --} -- -diff -uprN orig/tpm_emulator-0.4/linux_module.h tpm_emul...