Author: remi
Date: 2008-12-14 00:42:46 +0100 (Sun, 14 Dec 2008)
New Revision: 3101

Modified:
   software_suite_v2/tuxware/tuxdriver/trunk/src/tux_sw_status.c
Log:
* updated the initialization of the statuses

Modified: software_suite_v2/tuxware/tuxdriver/trunk/src/tux_sw_status.c
===================================================================
--- software_suite_v2/tuxware/tuxdriver/trunk/src/tux_sw_status.c       
2008-12-13 23:18:53 UTC (rev 3100)
+++ software_suite_v2/tuxware/tuxdriver/trunk/src/tux_sw_status.c       
2008-12-13 23:42:46 UTC (rev 3101)
@@ -216,6 +216,7 @@
 tux_sw_status_init(void)
 {
     static char driver_symbolic_version[128] = "";
+    int i;
 
 #ifdef USE_MUTEX
     mutex_init(__status_mutex);
@@ -231,7 +232,13 @@
     tux_sw_status_set_strvalue(SW_ID_DRIVER_SYMBOLIC_VERSION,
         driver_symbolic_version, false);
 
+    /* Initialize the "last updated time" value of the statuses */
+    for (i = 0; i < SW_STATUS_NUMBER; i++)
+    {
+        sw_status_table[i].lu_time = get_time();
+    }
 
+
 #ifdef GENERATE_DOC
     tux_sw_status_dump_status_doc();
 #endif


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to