[freenos] [freenos commit] r198 - LinnDump: print the string 'Never' for zero-value timestamps.

  • From: codesite-noreply@xxxxxxxxxx
  • To: freenos@xxxxxxxxxxxxx
  • Date: Sun, 05 Jul 2009 14:45:02 +0000

Author: nieklinnenbank
Date: Sun Jul  5 07:44:27 2009
New Revision: 198

Modified:
   trunk/srv/filesystem/linn/LinnDump.cpp

Log:
LinnDump: print the string 'Never' for zero-value timestamps.


Modified: trunk/srv/filesystem/linn/LinnDump.cpp
==============================================================================
--- trunk/srv/filesystem/linn/LinnDump.cpp      (original)
+++ trunk/srv/filesystem/linn/LinnDump.cpp      Sun Jul  5 07:44:27 2009
@@ -28,6 +28,11 @@
     char *buff = (char *) malloc(128);
     struct tm *tm;

+    /* Check for zero timestamps. */
+    if (!timestamp)
+    {
+       return strdup("Never");
+    }
     /* Fill in the time struct. */
     tm = gmtime((const time_t *) &timestamp);


Other related posts:

  • » [freenos] [freenos commit] r198 - LinnDump: print the string 'Never' for zero-value timestamps. - codesite-noreply