Commit eb5b6361 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Change allexpt_duration in stats tables to a float; we are overflowing

the unsigned int.
parent 05b2baf2
......@@ -2259,7 +2259,7 @@ CREATE TABLE `group_stats` (
`exptswapmod_count` int(11) unsigned default '0',
`exptswapmod_last` datetime default NULL,
`last_activity` datetime default NULL,
`allexpt_duration` int(11) unsigned default '0',
`allexpt_duration` double(14,0) unsigned default '0',
`allexpt_vnodes` int(11) unsigned default '0',
`allexpt_vnode_duration` double(14,0) unsigned default '0',
`allexpt_pnodes` int(11) unsigned default '0',
......@@ -4338,7 +4338,7 @@ CREATE TABLE `project_stats` (
`exptswapmod_count` int(11) unsigned default '0',
`exptswapmod_last` datetime default NULL,
`last_activity` datetime default NULL,
`allexpt_duration` int(11) unsigned default '0',
`allexpt_duration` double(14,0) unsigned default '0',
`allexpt_vnodes` int(11) unsigned default '0',
`allexpt_vnode_duration` double(14,0) unsigned default '0',
`allexpt_pnodes` int(11) unsigned default '0',
......@@ -5129,7 +5129,7 @@ CREATE TABLE `user_stats` (
`exptswapmod_count` int(11) unsigned default '0',
`exptswapmod_last` datetime default NULL,
`last_activity` datetime default NULL,
`allexpt_duration` int(11) unsigned default '0',
`allexpt_duration` double(14,0) unsigned default '0',
`allexpt_vnodes` int(11) unsigned default '0',
`allexpt_vnode_duration` double(14,0) unsigned default '0',
`allexpt_pnodes` int(11) unsigned default '0',
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("alter table group_stats change `allexpt_duration` " .
" `allexpt_duration` double(14,0) unsigned default '0'");
DBQueryFatal("alter table project_stats change `allexpt_duration` " .
" `allexpt_duration` double(14,0) unsigned default '0'");
DBQueryFatal("alter table user_stats change `allexpt_duration` " .
" `allexpt_duration` double(14,0) unsigned default '0'");
return 0;
}
# Local Variables:
# mode:perl
# End:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment