summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-11 21:52:46 +0000
committerJeremy Allison <jra@samba.org>2002-01-11 21:52:46 +0000
commitb741f6b04c2b0da7963cf0778f20a8ad1e8dbf9e (patch)
treea7abaf498a9a2866cd497cc1377ceb1749d78b88 /source3/printing
parentd6823366b881612234ab0655adb11c594f864c4a (diff)
downloadsamba-b741f6b04c2b0da7963cf0778f20a8ad1e8dbf9e.tar.gz
samba-b741f6b04c2b0da7963cf0778f20a8ad1e8dbf9e.tar.bz2
samba-b741f6b04c2b0da7963cf0778f20a8ad1e8dbf9e.zip
Latest attempt at changeid.
Jeremy. (This used to be commit 24ee18c77e1b61004d8ed817118a481f3d43e34c)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index d1ab5ce21d..608ba9f21f 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -2651,10 +2651,11 @@ void get_printer_subst_params(int snum, fstring *printername, fstring *sharename
static uint32 rev_changeid(void)
{
- static time_t start_time;
- if (start_time == 0)
- start_time = time(NULL);
- return (((time(NULL) - start_time)+1)*1000);
+ struct timeval tv;
+
+ get_process_uptime(&tv);
+ /* This value is in ms * 100 */
+ return (tv.tv_sec * 100000) + (tv.tv_usec / 10);
}
/*