… | |
… | |
105 | our %RESOURCE; |
105 | our %RESOURCE; |
106 | |
106 | |
107 | our $TICK = MAX_TIME * 1e-6; # this is a CONSTANT(!) |
107 | our $TICK = MAX_TIME * 1e-6; # this is a CONSTANT(!) |
108 | our $NEXT_RUNTIME_WRITE; # when should the runtime file be written |
108 | our $NEXT_RUNTIME_WRITE; # when should the runtime file be written |
109 | our $NEXT_TICK; |
109 | our $NEXT_TICK; |
110 | our $USE_FSYNC = 1; # use fsync to write maps - default off |
110 | our $USE_FSYNC = 1; # use fsync to write maps - default on |
111 | |
111 | |
112 | our $BDB_DEADLOCK_WATCHER; |
112 | our $BDB_DEADLOCK_WATCHER; |
113 | our $BDB_CHECKPOINT_WATCHER; |
113 | our $BDB_CHECKPOINT_WATCHER; |
114 | our $BDB_TRICKLE_WATCHER; |
114 | our $BDB_TRICKLE_WATCHER; |
115 | our $DB_ENV; |
115 | our $DB_ENV; |
… | |
… | |
1320 | |
1320 | |
1321 | # "readahead" all extensions |
1321 | # "readahead" all extensions |
1322 | sub cache_extensions { |
1322 | sub cache_extensions { |
1323 | my $grp = IO::AIO::aio_group; |
1323 | my $grp = IO::AIO::aio_group; |
1324 | |
1324 | |
1325 | add $grp IO::AIO::aio_readdir $LIBDIR, sub { |
1325 | add $grp IO::AIO::aio_readdirx $LIBDIR, IO::AIO::READDIR_STAT_ORDER, sub { |
1326 | for (grep /\.ext$/, @{$_[0]}) { |
1326 | for (grep /\.ext$/, @{$_[0]}) { |
1327 | add $grp IO::AIO::aio_load "$LIBDIR/$_", my $data; |
1327 | add $grp IO::AIO::aio_load "$LIBDIR/$_", my $data; |
1328 | } |
1328 | } |
1329 | }; |
1329 | }; |
1330 | |
1330 | |
… | |
… | |
2785 | id => "infobox", |
2785 | id => "infobox", |
2786 | title => "Skills", |
2786 | title => "Skills", |
2787 | reply => undef, |
2787 | reply => undef, |
2788 | tooltip => "Shows your experience per skill and item power", |
2788 | tooltip => "Shows your experience per skill and item power", |
2789 | }, |
2789 | }, |
|
|
2790 | "c/shopitems" => { |
|
|
2791 | id => "infobox", |
|
|
2792 | title => "Shop Items", |
|
|
2793 | reply => undef, |
|
|
2794 | tooltip => "Shows the items currently for sale in this shop", |
|
|
2795 | }, |
2790 | "c/resistances" => { |
2796 | "c/resistances" => { |
2791 | id => "infobox", |
2797 | id => "infobox", |
2792 | title => "Resistances", |
2798 | title => "Resistances", |
2793 | reply => undef, |
2799 | reply => undef, |
2794 | tooltip => "Shows your resistances", |
2800 | tooltip => "Shows your resistances", |
… | |
… | |
2796 | "c/pets" => { |
2802 | "c/pets" => { |
2797 | id => "infobox", |
2803 | id => "infobox", |
2798 | title => "Pets", |
2804 | title => "Pets", |
2799 | reply => undef, |
2805 | reply => undef, |
2800 | tooltip => "Shows information abotu your pets/a specific pet", |
2806 | tooltip => "Shows information abotu your pets/a specific pet", |
|
|
2807 | }, |
|
|
2808 | "c/perceiveself" => { |
|
|
2809 | id => "infobox", |
|
|
2810 | title => "Perceive Self", |
|
|
2811 | reply => undef, |
|
|
2812 | tooltip => "You gained detailed knowledge about yourself", |
2801 | }, |
2813 | }, |
2802 | "c/uptime" => { |
2814 | "c/uptime" => { |
2803 | id => "infobox", |
2815 | id => "infobox", |
2804 | title => "Uptime", |
2816 | title => "Uptime", |
2805 | reply => undef, |
2817 | reply => undef, |