summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-04-25 20:13:57 +0200
committerAraq <rumpf_a@web.de>2011-04-25 20:13:57 +0200
commited887e67e93954e1b1ace068abc1c0d5f2e67b72 (patch)
tree4a82d8244318815f687499e7453fd91fe0861034 /lib
parent3dd67d20fcef755d6b6d2f284b67bbaa8bc45bd9 (diff)
downloadNim-ed887e67e93954e1b1ace068abc1c0d5f2e67b72.tar.gz
bugfix: times.epochTime
Diffstat (limited to 'lib')
-rwxr-xr-xlib/pure/logging.nim4
-rwxr-xr-xlib/pure/times.nim3
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/pure/logging.nim b/lib/pure/logging.nim
index 81c6a53c5..cd90188f4 100755
--- a/lib/pure/logging.nim
+++ b/lib/pure/logging.nim
@@ -69,7 +69,7 @@ proc defaultFilename*(): string =
 proc substituteLog*(frmt: string): string = 
   ## converts $date to the current date
   ## converts $time to the current time
-  ## converts $app to getApplicationFilename()
+  ## converts $app to getAppFilename()
   ## converts 
   result = ""
   var i = 0
@@ -80,7 +80,7 @@ proc substituteLog*(frmt: string): string =
     else:
       inc(i)
       var v = ""
-      var app = getApplicationFilename()
+      var app = getAppFilename()
       while frmt[i] in IdentChars: 
         v.add(toLower(frmt[i]))
         inc(i)
diff --git a/lib/pure/times.nim b/lib/pure/times.nim
index eddaf7e3c..da23d4615 100755
--- a/lib/pure/times.nim
+++ b/lib/pure/times.nim
@@ -295,8 +295,7 @@ when not defined(ECMAScript):
       when defined(posix):
         var a: Ttimeval
         posix_gettimeofday(a)
-        result = toFloat(a.tv_sec) + toFloat(a.tv_usec)*0.001
-        # why 0.001 instead of 0.00_0001? I don't know.
+        result = toFloat(a.tv_sec) + toFloat(a.tv_usec)*0.00_0001
       elif defined(windows):
         var f: winlean.Filetime
         GetSystemTimeAsFileTime(f)