Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -2640,6 +2640,16 @@ |
2641 | 2641 | } |
2642 | 2642 | |
2643 | 2643 | /** |
| 2644 | + * Determines how long the server has been up |
| 2645 | + * STUB |
| 2646 | + * |
| 2647 | + * @return int |
| 2648 | + */ |
| 2649 | + function getServerUptime() { |
| 2650 | + return 0; |
| 2651 | + } |
| 2652 | + |
| 2653 | + /** |
2644 | 2654 | * Determines if the last failure was due to a deadlock |
2645 | 2655 | * STUB |
2646 | 2656 | * |
Index: trunk/phase3/includes/db/DatabaseMysql.php |
— | — | @@ -698,6 +698,16 @@ |
699 | 699 | } |
700 | 700 | |
701 | 701 | /** |
| 702 | + * Determines how long the server has been up |
| 703 | + * |
| 704 | + * @return int |
| 705 | + */ |
| 706 | + function getServerUptime() { |
| 707 | + $vars = $this->getMysqlStatus( 'Uptime' ); |
| 708 | + return (int)$vars['Uptime']; |
| 709 | + } |
| 710 | + |
| 711 | + /** |
702 | 712 | * Determines if the last failure was due to a deadlock |
703 | 713 | * |
704 | 714 | * @return bool |