search for: timestr

Displaying 20 results from an estimated 26 matches for "timestr".

2013 Sep 14
1
Asterisk-1.8.23.1 mysql cdr
...ehavior, it's provided here. */ if (calldate_compat) { struct timeval tv = ast_tvnow(); struct ast_tm tm; char timestr[128]; ast_localtime(&tv, &tm, ast_str_strlen(cdrzone) ? ast_str_buffer(cdrzone) : NULL); ast_strftime(timestr, sizeof(timestr), "%Y-%m-%d %T", &tm); ast_cdr_...
2004 Apr 10
0
patches for copying atimes
...1.209 +++ flist.c 10 Apr 2004 23:28:35 -0000 @@ -140,16 +140,16 @@ #if SUPPORT_LINKS if (preserve_links && S_ISLNK(f->mode)) { - rprintf(FINFO, "%s %11.0f %s %s -> %s\n", + rprintf(FINFO, "%s %11.0f %s %s %s -> %s\n", perms, (double) f->length, timestring(f->modtime), - f_name(f), f->u.link); + timestring(f->atime), f_name(f), f->u.link); } else #endif - rprintf(FINFO, "%s %11.0f %s %s\n", + rprintf(FINFO, "%s %11.0f %s %s %s\n", perms, (double) f->length, timestring(f->modtime), - f_name(f...
2001 Jul 05
3
plotting time
Hi, all. I'm trying to create a plot that has a range of about an hour on the x axis, starting at about 10:15. I have a way I'm currently doing it but it's not working. this is what I want on the x axis: | | | | | | | | | | ---------------------------------------------- 10:15 10:25 10:35 10:45 10:55 11:05 11:15 what's the best way to plot this out like this? currently,
2004 Apr 20
1
improved atime patch
...1.214 +++ flist.c 20 Apr 2004 21:06:18 -0000 @@ -140,16 +140,16 @@ #if SUPPORT_LINKS if (preserve_links && S_ISLNK(f->mode)) { - rprintf(FINFO, "%s %11.0f %s %s -> %s\n", + rprintf(FINFO, "%s %11.0f %s %s %s -> %s\n", perms, (double) f->length, timestring(f->modtime), - f_name(f), f->u.link); + timestring(f->atime), f_name(f), f->u.link); } else #endif - rprintf(FINFO, "%s %11.0f %s %s\n", + rprintf(FINFO, "%s %11.0f %s %s %s\n", perms, (double) f->length, timestring(f->modtime), - f_name(f...
2003 Jul 11
4
module : cdr_sybase.so
...struct tm _date(struct timeval tv) { struct tm tm; time_t t; t = tv.tv_sec; localtime_r(&t,&tm); return tm; } static int sybase_log(struct ast_cdr *cdr) { struct tm tm, end, start, answer; struct timeval tv; struct timezone tz; char *sqlcmd, timestr[128], timestart[128], timeend[128], timeanswer[128]; time_t t; sqlcmd = (char *)malloc(2048); memset(sqlcmd,0,2048); start = _date(cdr->start); end = _date(cdr->end); answer = _date(cdr->answer); gettimeofday(&tv,&tz); t = tv.tv_sec; localtime_r(&t,&tm...
2000 Mar 29
1
Syntax error in lib/time.c
There is a syntax error in lib/time.c in function timestring Change if (hires)() { to if (hires) { The error occured under SCO ODT 3.0 compiling with gcc. Dr. Walter Willmertinger CONSYS Gesellschaft f?r Softwaretechnologie und Systementwicklung mbH Dr. Walter Willmertinger Landsberger Strasse 402 EMail: willmertinger@consys.de 81241 Muenchen...
2005 Mar 15
0
[Bug 2455] New: rsync --daemon segfaults if "log file = <file>" dir does not exist
..."remote command could not be run" }, *************** *** 89,96 **** static void logit(int priority, char *buf) { if (logfname) { ! if (!logfile) log_open(); fprintf(logfile,"%s [%d] %s", timestring(time(NULL)), (int)getpid(), buf); fflush(logfile); --- 90,103 ---- static void logit(int priority, char *buf) { if (logfname) { ! if (!logfile) /* Try opening log file for appending */ log_open(); + + if (!logfi...
2003 Apr 15
0
Patch for stderr logging
...&Globals.syslog_facility) diff -Nuar rsync-2.5.6/log.c rsync-2.5.6.new/log.c --- rsync-2.5.6/log.c Mon Dec 23 23:42:04 2002 +++ rsync-2.5.6.new/log.c Sat Apr 12 23:57:54 2003 @@ -137,11 +137,17 @@ if (logfname) { if (!logfile) log_open(); - fprintf(logfile,"%s [%d] %s", - timestring(time(NULL)), (int)getpid(), buf); + if (lp_log_timestamp()) { + fprintf(logfile,"%s ", timestring(time(NULL))); + } + if (lp_log_pid()) { + fprintf(logfile,"[%d] ", (int)getpid()); + } + fprintf(logfile,"%s", buf); fflush(logfile); } else { syslog(p...
2002 Jun 27
0
lattice and dates
...1/70, to give a more useful time origin!Nick Sherrard, PhDreduplicativeblending at yahoo.co.uk______________________________________________________Subject: [R] lattice and datesI've got some data that is recorded at various times during theday. I create a time stamp is created from date and timestrings like this: > timestamp xyplot( value ~ timestamp | subject )This fails with Error in as.double.default(x) : (list) object cannot be coerced to vector type 14 In addition: Warning message: Both x and y should be numeric in: xyplot( value ~ timestamp | subject )I was sure I saw someth...
2004 Jan 29
2
windows and log time with %t is not displayed
Hi, I use the following log format on windows and Unix platforms: from windows batch script: --log-format="%%t [%%p] <recv<%USER_IP%<%USER%<%%f<%%l<%%b" from unix bash script: --log-format="%t [%p] <recv<${USER_IP}<${USER}<%f<%l<%b" Here are examples of the log lines (on one line): windows client: 2004/01/28 [2308]
2013 Mar 01
1
[Bug 9693] New: New --time-format option
...Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: mluscon at redhat.com QAContact: rsync-qa at samba.org Rsync timestring function produces hard-coded time format that does not have time zone information included, which makes time comparisons untenable between differing time zones and differing log files. Provided attachment contains new --time-format option, which allows users to define their own time format. --...
2006 Jul 03
2
Time entries in rsync log
Hi, I get strange time entries in the rsync log, For example: 2006/07/02 14:56:12 [20054] rsync to upload/aspen/nhm from plxc6266.pdx.intel.com (10.25.26.90) 2006/07/02 11:56:22 [20054] wrote 28 bytes read 3582404 bytes total size 32030720 The first entry in the correct time and second is strange. I checked and this is not the time on the destination. Any ideas what is the
2003 Nov 17
1
rsync --daemon and logfile that can't be created
.../log.c 2003-11-17 13:31:15.000000000 +0100 @@ -134,9 +134,9 @@ static void logit(int priority, char *buf) { - if (logfname) { - if (!logfile) - log_open(); + if (logfname && !logfile) + log_open(); + if (logfile) { fprintf(logfile,"%s [%d] %s", timestring(time(NULL)), (int)getpid(), buf); fflush(logfile); @@ -164,9 +164,11 @@ if (logfname) { if (*logfname) { log_open(); - return; + if (logfile) + return; + /* fall back to syslog if opening log file fails */ } - logfname = NULL;...
2012 Jan 23
3
conversion of string
I new in R programming language. I have some time data time [1] "2005-01-03 05:11:39 UTC" "2005-01-03 06:36:02 UTC" "2005-01-03 06:36:55 UTC" [4] "2005-01-03 06:37:00 UTC" "2005-01-03 06:38:04 UTC" "2005-01-03 06:38:04 UTC" [7] "2005-01-03 06:38:04 UTC" "2005-01-03 06:38:04 UTC" "2005-01-03 06:38:05
2002 Jun 27
1
lattice and dates (correcting e-mail formatting glitch - sorry!!)
...ding at yahoo.co.uk ______________________________________________________ Subject: [R] lattice and dates I've got some data that is recorded at various times during the day. I create a time stamp is created from date and time strings like this: > timestamp <- strptime( paste( datestring, timestring), "%D %X" ) Then I'd like to use lattice to plot the time dependence by doing something like > xyplot( value ~ timestamp | subject ) This fails with Error in as.double.default(x) : (list) object cannot be coerced to vector type 14 In addition: Warning message: Both x and y shoul...
2001 Jul 28
2
lattice and histogram
Hello again folks, Thanks to all for the advice on getting hold of "grid" and "lattice". I think I'm getting the hang of it. This produces very satisfying arrays of histograms. The typical command I am using is histogram( ~ DATA.df$X | DATA.df$F, \ type=c("count"), layout=c(5,5) ) Now I'd like to ask a question slightly more subtle than
2004 Apr 19
3
[PATCH] time limit
...kup_dir; diff -urN rsync-2.6.1pre-2/proto.h rsync-2.6.1pre-2_modified/proto.h --- rsync-2.6.1pre-2/proto.h 2004-04-14 19:33:30.000000000 -0400 +++ rsync-2.6.1pre-2_modified/proto.h 2004-04-19 16:07:57.000000000 -0400 @@ -267,6 +267,7 @@ int unsafe_symlink(const char *dest, const char *src); char *timestring(time_t t); int msleep(int t); +time_t get_rsync_start_time(void); int cmp_modtime(time_t file1, time_t file2); int _Insure_trap_error(int a1, int a2, int a3, int a4, int a5, int a6); void *_new_array(unsigned int size, unsigned long num); diff -urN rsync-2.6.1pre-2/rsync.1 rsync-2.6.1pre-2_m...
2004 Apr 22
2
[PATCH] --timelimit and --stopat
...kup_dir; diff -urN rsync-2.6.1pre-2/proto.h rsync-2.6.1pre-2_modified/proto.h --- rsync-2.6.1pre-2/proto.h 2004-04-14 19:33:30.000000000 -0400 +++ rsync-2.6.1pre-2_modified/proto.h 2004-04-22 15:36:33.000000000 -0400 @@ -267,6 +267,7 @@ int unsafe_symlink(const char *dest, const char *src); char *timestring(time_t t); int msleep(int t); +time_t get_rsync_start_time(void); int cmp_modtime(time_t file1, time_t file2); int _Insure_trap_error(int a1, int a2, int a3, int a4, int a5, int a6); void *_new_array(unsigned int size, unsigned long num); diff -urN rsync-2.6.1pre-2/rsync.1 rsync-2.6.1pre-2_m...
2007 Jul 28
1
Error while contacting ADS from Samba server
...er_info Code snippet within this function: value = ads_pull_string(ads, ctx, res, "ldapServiceName"); if (!value) { ads_msgfree(ads, res); talloc_destroy(ctx); return ADS_ERROR(LDAP_NO_RESULTS_RETURNED); } timestr = ads_pull_string(ads, ctx, res, "currentTime"); if (!timestr) { ads_msgfree(ads, res); talloc_destroy(ctx); return ADS_ERROR(LDAP_NO_RESULTS_RETURNED); } schema_path = ads_pull_string(ads, ctx, res, "sche...
2006 May 03
2
Rsync error on client end: unexpected tag 3 [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(843) [sender]
Hi guys: First post for me on this list. THE PROBLEM =========== I have several linux servers (ranging from Redhat 7.3 to FC3) that use Rsync (version 2.6.8 and 2.6.7, read on for reasons) to backup their data. A typical rsync backup script looks like this: ------------------------------------------------------------------------------------------ #!/bin/sh RSYNC_PASSWORD=<PASSWORD> rsync