Poor man’s NTP
| ( ! ) Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/bbbart/www/htdocs/blog/wp-content/plugins/vimcolor/wp-vimcolor.php on line 105 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0003 | 53044 | {main}( ) | ../index.php:0 |
| 2 | 0.0004 | 56484 | require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' ) | ../index.php:17 |
| 3 | 0.1955 | 16857228 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1971 | 16919808 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' ) | ../template-loader.php:43 |
| 5 | 0.2332 | 17040096 | the_content( ) | ../single.php:16 |
| 6 | 0.2333 | 17041000 | apply_filters( ) | ../post-template.php:169 |
| 7 | 0.2350 | 17045668 | call_user_func_array ( ) | ../plugin.php:166 |
| 8 | 0.2350 | 17045852 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.2351 | 17046188 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 10 | 0.2351 | 17049912 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 11 | 0.2351 | 17050164 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:6 |
| 12 | 0.2433 | 17066512 | fread ( ) | ../wp-vimcolor.php:105 |
Yesterday I had to quickly (more or less) synchronize the clocks of a handful of computers I was working on. I didn’t have the time to work out an NTP based solution, so I came up with the following simple trick:
Needless to say… it worked. :-)